diff options
author | Jim McDonough <jmcd@samba.org> | 2010-03-16 09:58:34 -0400 |
---|---|---|
committer | Jim McDonough <jmcd@samba.org> | 2010-03-16 09:58:34 -0400 |
commit | 9447f863d281809a752836da8136eeae89c00353 (patch) | |
tree | adaa8973a4fd9ae73ba0fe7558dc7d7ee3e1527f /source3/utils | |
parent | a0e2632e119c2e3e086cd485d448b44836c1499b (diff) | |
download | samba-9447f863d281809a752836da8136eeae89c00353.tar.gz samba-9447f863d281809a752836da8136eeae89c00353.tar.bz2 samba-9447f863d281809a752836da8136eeae89c00353.zip |
Don't exit(0) on error
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/smbta-util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/utils/smbta-util.c b/source3/utils/smbta-util.c index 13686ae7a0..8ce8fa5672 100644 --- a/source3/utils/smbta-util.c +++ b/source3/utils/smbta-util.c @@ -56,7 +56,7 @@ static void create_keyfile(char *filename, char *key) keyfile = fopen(filename, "w"); if (keyfile == NULL) { printf("error creating the keyfile!\n"); - exit(0); + exit(1); } fprintf(keyfile, "%s", key); fclose(keyfile); @@ -75,13 +75,13 @@ static char *load_key_from_file(char *filename) keyfile = fopen(filename, "r"); if (keyfile == NULL) { printf("Error opening the keyfile!\n"); - exit(0); + exit(1); } l = fscanf(keyfile, "%s", key); if (strlen(key) != 16) { printf("Key file in wrong format\n"); fclose(keyfile); - exit(0); + exit(1); } return key; } |