summaryrefslogtreecommitdiff
path: root/src/cd-common.h
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2011-09-09 14:41:48 +0100
committerRichard Hughes <richard@hughsie.com>2011-09-12 17:09:28 +0100
commit490c80cd0955649008ba53bfbf86e666f9b3c239 (patch)
treebd717d1edb0c562dbc67a5bc8d08e45eb9c180f2 /src/cd-common.h
parentcfd2adff0472deab61cf26126bc8dc7db6cd6da5 (diff)
downloadcolord-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.h1
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;