summaryrefslogtreecommitdiff
path: root/plugins/password/helpers
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-03-05 14:01:45 +0100
committerAleksander Machniak <alec@alec.pl>2014-03-05 17:30:35 +0100
commit3505d576412c64551dd1bc7d61ca892d576f88fb (patch)
tree71ea38b5752f98d5c598f8e0032ad6329e41ef3a /plugins/password/helpers
parent4b859649ea4970fb8484be1a3c55477f0c2baee2 (diff)
Fix dbmail driver (hints from https://github.com/roundcube/roundcubemail/pull/169)
Diffstat (limited to 'plugins/password/helpers')
-rw-r--r--plugins/password/helpers/chgdbmailusers.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/password/helpers/chgdbmailusers.c b/plugins/password/helpers/chgdbmailusers.c
index 28f79c100..22793857d 100644
--- a/plugins/password/helpers/chgdbmailusers.c
+++ b/plugins/password/helpers/chgdbmailusers.c
@@ -5,7 +5,6 @@
// set the UID this script will run as (root user)
#define UID 0
#define CMD "/usr/sbin/dbmail-users"
-#define RCOK 0x100
/* INSTALLING:
gcc -o chgdbmailusers chgdbmailusers.c
@@ -38,7 +37,7 @@ main(int argc, char *argv[])
cc = setuid(UID);
rc = system(cmnd);
- if ((rc != RCOK) || (cc != 0))
+ if ((rc != 0) || (cc != 0))
{
fprintf(stderr, "__ %s: failed %d %d\n", argv[0], rc, cc);
return 1;