summaryrefslogtreecommitdiff
path: root/source3/utils/smbta-util.c
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2010-03-16 09:58:34 -0400
committerJim McDonough <jmcd@samba.org>2010-03-16 09:58:34 -0400
commit9447f863d281809a752836da8136eeae89c00353 (patch)
treeadaa8973a4fd9ae73ba0fe7558dc7d7ee3e1527f /source3/utils/smbta-util.c
parenta0e2632e119c2e3e086cd485d448b44836c1499b (diff)
downloadsamba-9447f863d281809a752836da8136eeae89c00353.tar.gz
samba-9447f863d281809a752836da8136eeae89c00353.tar.bz2
samba-9447f863d281809a752836da8136eeae89c00353.zip
Don't exit(0) on error
Diffstat (limited to 'source3/utils/smbta-util.c')
-rw-r--r--source3/utils/smbta-util.c6
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;
}