Signed-off-by: Elyes HAOUAS <ehao...@noos.fr> --- diff --git bin/chmod/chmod.c bin/chmod/chmod.c index 449ac707ea1..d6f5bdc73a1 100644 --- bin/chmod/chmod.c +++ bin/chmod/chmod.c @@ -256,7 +256,7 @@ done: * on the level: follow it iff it's a command line arg. */ if (fts_options & FTS_COMFOLLOW) { - atflags = p->fts_level == FTS_ROOTLEVEL ? 0 : + atflags = p->fts_level == FTS_ROOTLEVEL ? 0 : AT_SYMLINK_NOFOLLOW; } diff --git bin/cp/cp.c bin/cp/cp.c index 791e1d18c54..979e1a36933 100644 --- bin/cp/cp.c +++ bin/cp/cp.c @@ -319,7 +319,7 @@ copy(char *argv[], enum op type, int fts_options) if (type != DIR_TO_DNE) { p = find_last_component(curr->fts_path); base = p - curr->fts_path; - + if (!strcmp(&curr->fts_path[base], "..")) base += 1; diff --git bin/csh/alloc.c bin/csh/alloc.c index 7720ddb9536..770682d2cef 100644 --- bin/csh/alloc.c +++ bin/csh/alloc.c @@ -80,7 +80,7 @@ char * xstrdup(const char *s) { char *n; - + if (s == NULL) s = ""; if ((n = strdup(s)) == NULL) { diff --git bin/csh/dol.c bin/csh/dol.c index 8d96579a2aa..f5344adf1b2 100644 --- bin/csh/dol.c +++ bin/csh/dol.c @@ -857,7 +857,7 @@ heredoc(Char *term) * Check for EOF or compare to terminator -- before expansion */ if (c < 0 || eq(lbuf, term)) { - (void) write(STDIN_FILENO, short2str(obuf), + (void) write(STDIN_FILENO, short2str(obuf), (size_t) (BUFSIZ - ocnt)); (void) lseek(STDIN_FILENO, (off_t) 0, SEEK_SET); return; diff --git bin/ed/main.c bin/ed/main.c index dc73dd92b69..bc5b3965047 100644 --- bin/ed/main.c +++ bin/ed/main.c @@ -324,7 +324,7 @@ extract_addr_range(void) return ERR; \ } \ } while (0) - + /* next_addr: return the next line address in the command buffer */ static int diff --git bin/expr/expr.c bin/expr/expr.c index d37349081c9..2ec8c222a0f 100644 --- bin/expr/expr.c +++ bin/expr/expr.c @@ -176,7 +176,7 @@ nexttoken(int pat) } av++; - + if (pat == 0 && p[0] != '\0') { if (p[1] == '\0') { const char *x = "|&=<>+-*/%:()"; diff --git bin/mv/cp.c bin/mv/cp.c index 02c5d8b6bcb..29608d18054 100644 --- bin/mv/cp.c +++ bin/mv/cp.c @@ -260,7 +260,7 @@ copy(char *argv[], enum op type, int fts_options) if (type != DIR_TO_DNE) { p = find_last_component(curr->fts_path); base = p - curr->fts_path; - + if (!strcmp(&curr->fts_path[base], "..")) base += 1; diff --git bin/pax/file_subs.c bin/pax/file_subs.c index 34c59d22d69..8ca42259dae 100644 --- bin/pax/file_subs.c +++ bin/pax/file_subs.c @@ -644,7 +644,7 @@ chk_path(char *name, uid_t st_uid, gid_t st_gid, int ign) */ if (mkdir(name, S_IRWXU | S_IRWXG | S_IRWXO) == -1) { if (!ign) - syswarn(1, errno, "Unable to mkdir %s", name); + syswarn(1, errno, "Unable to mkdir %s", name); *spt = '/'; retval = -1; break; diff --git bin/stty/key.c bin/stty/key.c index 245e5db0861..02b007059a5 100644 --- bin/stty/key.c +++ bin/stty/key.c @@ -214,7 +214,7 @@ f_ispeed(struct info *ip) { const char *errstr; speed_t speed; - + speed = strtonum(ip->arg, 0, UINT_MAX, &errstr); if (errstr) err(1, "ispeed %s", ip->arg); @@ -256,7 +256,7 @@ f_ospeed(struct info *ip) { const char *errstr; speed_t speed; - + speed = strtonum(ip->arg, 0, UINT_MAX, &errstr); if (errstr) err(1, "ospeed %s", ip->arg); -- 2.33.0