/* $NetBSD: compare.c,v 1.11 1996/09/05 09:56:48 mycroft Exp $ */
-/* $OpenBSD: compare.c,v 1.26 2016/08/14 20:53:19 krw Exp $ */
+/* $OpenBSD: compare.c,v 1.27 2016/08/16 16:41:46 krw Exp $ */
/*-
* Copyright (c) 1989, 1993
if (utimes(p->fts_accpath, tv))
(void)printf(", not modified: %s)\n",
strerror(errno));
- else
- (void)printf(", modified)\n");
+ else
+ (void)printf(", modified)\n");
} else
(void)printf(")\n");
- tab = "\t";
+ tab = "\t";
}
}
if (s->flags & F_CKSUM) {
REPLACE_COMMA(cur_flags);
printf("%sflags (%s, %s", tab, (*db_flags == '\0') ?
"-" : db_flags,
- (*cur_flags == '\0') ?
+ (*cur_flags == '\0') ?
"-" : cur_flags);
tab = "\t";
if (uflag)
if (chflags(p->fts_accpath, s->file_flags))
(void)printf(", not modified: %s)\n",
strerror(errno));
- else
+ else
(void)printf(", modified)\n");
else
(void)printf(")\n");
- tab = "\t";
+ tab = "\t";
free(db_flags);
free(cur_flags);
/* $NetBSD: create.c,v 1.11 1996/09/05 09:24:19 mycroft Exp $ */
-/* $OpenBSD: create.c,v 1.31 2016/08/14 20:53:19 krw Exp $ */
+/* $OpenBSD: create.c,v 1.32 2016/08/16 16:41:46 krw Exp $ */
/*-
* Copyright (c) 1989, 1993
if (!dflag)
statf(indent, p);
break;
-
}
}
(void)fts_close(t);
escaped_name = malloc(esc_len);
if (escaped_name == NULL)
error("statf: %s", strerror(errno));
- strnvis(escaped_name, p->fts_name, esc_len,
+ strnvis(escaped_name, p->fts_name, esc_len,
VIS_WHITE | VIS_OCTAL | VIS_GLOB);
if (iflag || S_ISDIR(p->fts_statp->st_mode))
/* $NetBSD: spec.c,v 1.6 1995/03/07 21:12:12 cgd Exp $ */
-/* $OpenBSD: spec.c,v 1.27 2016/08/14 18:34:48 guenther Exp $ */
+/* $OpenBSD: spec.c,v 1.28 2016/08/16 16:41:46 krw Exp $ */
/*-
* Copyright (c) 1989, 1993
set(p, centry);
continue;
}
-
+
/* Grab file name, "$", "set", or "unset". */
if ((p = strtok(p, "\n\t ")) == NULL)
error("missing field");
if (strtofflags(&val, &fset, &fclr))
error("%s", strerror(errno));
ip->file_flags = fset;
- break;
+ break;
case F_GID:
ip->st_gid = strtoul(val, &ep, 10);
if (*ep)
-/* $OpenBSD: verify.c,v 1.20 2015/01/16 06:40:18 deraadt Exp $ */
+/* $OpenBSD: verify.c,v 1.21 2016/08/16 16:41:46 krw Exp $ */
/* $NetBSD: verify.c,v 1.10 1995/03/07 21:26:28 cgd Exp $ */
/*-
case FTS_DP:
if (specdepth > p->fts_level) {
for (level = level->parent; level->prev;
- level = level->prev);
+ level = level->prev);
--specdepth;
}
continue;