aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/dos2unix.c2
-rw-r--r--coreutils/expand.c2
-rw-r--r--coreutils/ln.c3
3 files changed, 4 insertions, 3 deletions
diff --git a/coreutils/dos2unix.c b/coreutils/dos2unix.c
index 115632f75..00688aac2 100644
--- a/coreutils/dos2unix.c
+++ b/coreutils/dos2unix.c
@@ -89,7 +89,7 @@ int dos2unix_main(int argc, char **argv)
89 } else { 89 } else {
90 conv_type = CT_UNIX2DOS; /* 1 */ 90 conv_type = CT_UNIX2DOS; /* 1 */
91 } 91 }
92 92
93 /* -u convert to unix, -d convert to dos */ 93 /* -u convert to unix, -d convert to dos */
94 opt_complementary = "u--d:d--u"; /* mutally exclusive */ 94 opt_complementary = "u--d:d--u"; /* mutally exclusive */
95 o = getopt32(argc, argv, "du"); 95 o = getopt32(argc, argv, "du");
diff --git a/coreutils/expand.c b/coreutils/expand.c
index 30815ff63..4b5fa1038 100644
--- a/coreutils/expand.c
+++ b/coreutils/expand.c
@@ -196,7 +196,7 @@ int expand_main(int argc, char **argv)
196 exit_status = EXIT_FAILURE; 196 exit_status = EXIT_FAILURE;
197 } 197 }
198 /* If stdin also clear EOF */ 198 /* If stdin also clear EOF */
199 if (file == stdin) 199 if (file == stdin)
200 clearerr(file); 200 clearerr(file);
201 } while (*++argv); 201 } while (*++argv);
202 202
diff --git a/coreutils/ln.c b/coreutils/ln.c
index 93a283d41..cffd4fdb5 100644
--- a/coreutils/ln.c
+++ b/coreutils/ln.c
@@ -54,7 +54,8 @@ int ln_main(int argc, char **argv)
54 54
55 if (is_directory(src, 55 if (is_directory(src,
56 (flag & LN_NODEREFERENCE) ^ LN_NODEREFERENCE, 56 (flag & LN_NODEREFERENCE) ^ LN_NODEREFERENCE,
57 NULL)) { 57 NULL)
58 ) {
58 src_name = xstrdup(*argv); 59 src_name = xstrdup(*argv);
59 src = concat_path_file(src, bb_get_last_path_component(src_name)); 60 src = concat_path_file(src, bb_get_last_path_component(src_name));
60 free(src_name); 61 free(src_name);