diff options
author | Richard Hughes <richard@hughsie.com> | 2011-09-09 14:41:48 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2011-09-12 17:09:28 +0100 |
commit | 490c80cd0955649008ba53bfbf86e666f9b3c239 (patch) | |
tree | bd717d1edb0c562dbc67a5bc8d08e45eb9c180f2 /src/cd-common.h | |
parent | cfd2adff0472deab61cf26126bc8dc7db6cd6da5 (diff) | |
download | colord-490c80cd0955649008ba53bfbf86e666f9b3c239.tar.gz |
Return an error when trying to register a duplicate profile
Silently continuing for duplicate IDs isn't safe if the profiles are not
actually identical, but share a common MD5. Per-user profiles are supposed to
have a username suffix now, so this fixes properly the permissions issue where
user A couldn't access profiles by user B.
Diffstat (limited to 'src/cd-common.h')
-rw-r--r-- | src/cd-common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cd-common.h b/src/cd-common.h index db13a10..240babc 100644 --- a/src/cd-common.h +++ b/src/cd-common.h @@ -39,6 +39,7 @@ typedef enum { CD_MAIN_ERROR_FAILED, + CD_MAIN_ERROR_ALREADY_EXISTS, CD_MAIN_ERROR_LAST } CdMainError; |