diff options
author | Joseph Hunkeler <jhunk@stsci.edu> | 2011-09-29 09:27:05 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunk@stsci.edu> | 2011-09-29 09:27:05 -0400 |
commit | 3c57da45c2981fc2142d91c56560032aa2fc78f6 (patch) | |
tree | e442fcdec6400f07255aa736655386f79d060402 /src | |
parent | af720d173a3a0507162770330876cad126ec33c2 (diff) | |
download | duser-3c57da45c2981fc2142d91c56560032aa2fc78f6.tar.gz |
NEW and MOD are not functional, so therefore disabled
Diffstat (limited to 'src')
-rw-r--r-- | src/duser.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/duser.c b/src/duser.c index 8f5603f..6dcd41e 100644 --- a/src/duser.c +++ b/src/duser.c @@ -18,8 +18,6 @@ * along with duser. If not, see <http://www.gnu.org/licenses/>. **/ -#define _GNU_SOURCE - #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -206,6 +204,9 @@ int main(int argc, char* argv[]) } if(CMD_FLAG_MOD) { + fprintf(stderr, "Not implemented, sorry.\n"); + return 0; + if(needle == NULL) { printf("You must specify an email address\n"); @@ -217,7 +218,6 @@ int main(int argc, char* argv[]) return -1; } - fprintf(stderr, "Not implemented, sorry.\n"); return 0; } if(CMD_FLAG_LIST) @@ -264,6 +264,9 @@ int main(int argc, char* argv[]) } if(CMD_FLAG_NEW) { + fprintf(stderr, "Not implemented, sorry.\n"); + return 0; + memset(filename, 0L, PATH_MAX); snprintf(filename, PATH_MAX, "%s%s", list_path, needle); @@ -280,12 +283,16 @@ int main(int argc, char* argv[]) char choice = getchar(); if((user_choice(choice)) == 0) { - if((user_new_list(filename)) == 0) + if((mklist(filename)) == 0) { printf("List added\n"); COM(SELF, "Commmand: NEW\n"); COM(SELF, "Created new list '%s'\n", basename(filename)); } + else + { + printf("Aborting...\n"); + } } else { |