aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/cat.c2
-rw-r--r--coreutils/chgrp.c4
-rw-r--r--coreutils/chmod.c6
-rw-r--r--coreutils/chown.c4
-rw-r--r--coreutils/ls.c2
-rw-r--r--coreutils/touch.c4
6 files changed, 11 insertions, 11 deletions
diff --git a/coreutils/cat.c b/coreutils/cat.c
index 820b6342e..33f15da71 100644
--- a/coreutils/cat.c
+++ b/coreutils/cat.c
@@ -37,7 +37,7 @@ extern int cat_main(int argc, char **argv)
37 while (--argc > 0) { 37 while (--argc > 0) {
38 if(!(strcmp(*++argv, "-"))) { 38 if(!(strcmp(*++argv, "-"))) {
39 print_file(stdin); 39 print_file(stdin);
40 } else if (print_file_by_name(*argv) == FALSE) { 40 } else if (! print_file_by_name(*argv)) {
41 status = EXIT_FAILURE; 41 status = EXIT_FAILURE;
42 } 42 }
43 } 43 }
diff --git a/coreutils/chgrp.c b/coreutils/chgrp.c
index 43ffeb7e6..968b448c0 100644
--- a/coreutils/chgrp.c
+++ b/coreutils/chgrp.c
@@ -72,8 +72,8 @@ int chgrp_main(int argc, char **argv)
72 72
73 /* Ok, ready to do the deed now */ 73 /* Ok, ready to do the deed now */
74 while (++optind < argc) { 74 while (++optind < argc) {
75 if (recursive_action (argv[optind], recursiveFlag, FALSE, FALSE, 75 if (! recursive_action (argv[optind], recursiveFlag, FALSE, FALSE,
76 fileAction, fileAction, NULL) == FALSE) { 76 fileAction, fileAction, NULL)) {
77 return EXIT_FAILURE; 77 return EXIT_FAILURE;
78 } 78 }
79 } 79 }
diff --git a/coreutils/chmod.c b/coreutils/chmod.c
index 53230b568..38b39680f 100644
--- a/coreutils/chmod.c
+++ b/coreutils/chmod.c
@@ -58,7 +58,7 @@ int chmod_main(int argc, char **argv)
58 if (argc > optind && argc > 2 && argv[optind]) { 58 if (argc > optind && argc > 2 && argv[optind]) {
59 /* Parse the specified mode */ 59 /* Parse the specified mode */
60 mode_t mode; 60 mode_t mode;
61 if (parse_mode(argv[optind], &mode) == FALSE) { 61 if (! parse_mode(argv[optind], &mode)) {
62 error_msg_and_die( "unknown mode: %s", argv[optind]); 62 error_msg_and_die( "unknown mode: %s", argv[optind]);
63 } 63 }
64 } else { 64 } else {
@@ -67,8 +67,8 @@ int chmod_main(int argc, char **argv)
67 67
68 /* Ok, ready to do the deed now */ 68 /* Ok, ready to do the deed now */
69 for (i = optind + 1; i < argc; i++) { 69 for (i = optind + 1; i < argc; i++) {
70 if (recursive_action (argv[i], recursiveFlag, FALSE, FALSE, fileAction, 70 if (! recursive_action (argv[i], recursiveFlag, FALSE, FALSE, fileAction,
71 fileAction, argv[optind]) == FALSE) { 71 fileAction, argv[optind])) {
72 return EXIT_FAILURE; 72 return EXIT_FAILURE;
73 } 73 }
74 } 74 }
diff --git a/coreutils/chown.c b/coreutils/chown.c
index c1b992c37..846e27c20 100644
--- a/coreutils/chown.c
+++ b/coreutils/chown.c
@@ -94,8 +94,8 @@ int chown_main(int argc, char **argv)
94 94
95 /* Ok, ready to do the deed now */ 95 /* Ok, ready to do the deed now */
96 while (++optind < argc) { 96 while (++optind < argc) {
97 if (recursive_action (argv[optind], recursiveFlag, FALSE, FALSE, 97 if (! recursive_action (argv[optind], recursiveFlag, FALSE, FALSE,
98 fileAction, fileAction, NULL) == FALSE) { 98 fileAction, fileAction, NULL)) {
99 return EXIT_FAILURE; 99 return EXIT_FAILURE;
100 } 100 }
101 } 101 }
diff --git a/coreutils/ls.c b/coreutils/ls.c
index 672a3bb3c..07e083f5a 100644
--- a/coreutils/ls.c
+++ b/coreutils/ls.c
@@ -193,7 +193,7 @@ static unsigned long ls_disp_hr = 0;
193static int my_stat(struct dnode *cur) 193static int my_stat(struct dnode *cur)
194{ 194{
195#ifdef CONFIG_FEATURE_LS_FOLLOWLINKS 195#ifdef CONFIG_FEATURE_LS_FOLLOWLINKS
196 if (follow_links == TRUE) { 196 if (follow_links) {
197 if (stat(cur->fullname, &cur->dstat)) { 197 if (stat(cur->fullname, &cur->dstat)) {
198 perror_msg("%s", cur->fullname); 198 perror_msg("%s", cur->fullname);
199 status = EXIT_FAILURE; 199 status = EXIT_FAILURE;
diff --git a/coreutils/touch.c b/coreutils/touch.c
index 3e2e600f3..f1c6dc484 100644
--- a/coreutils/touch.c
+++ b/coreutils/touch.c
@@ -53,10 +53,10 @@ extern int touch_main(int argc, char **argv)
53 } 53 }
54 54
55 while (argc > 0) { 55 while (argc > 0) {
56 fd = open(*argv, (create == FALSE) ? O_RDWR : O_RDWR | O_CREAT, 56 fd = open(*argv, create ? O_RDWR | O_CREAT : O_RDWR,
57 S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); 57 S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH);
58 if (fd < 0) { 58 if (fd < 0) {
59 if (create == FALSE && errno == ENOENT) { 59 if (! create && errno == ENOENT) {
60 argc--; 60 argc--;
61 argv++; 61 argv++;
62 continue; 62 continue;