make things a bit more consistent
This commit is contained in:
parent
609bf6154c
commit
44c6a0bbc1
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
/* from: static char sccsid[] = "@(#)compare.c 5.10 (Berkeley) 3/31/92"; */
|
/* from: static char sccsid[] = "@(#)compare.c 5.10 (Berkeley) 3/31/92"; */
|
||||||
static char *rcsid = "$Id: compare.c,v 1.4 1993/11/02 07:51:07 cgd Exp $";
|
static char *rcsid = "$Id: compare.c,v 1.5 1993/11/17 11:00:52 cgd Exp $";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
|
@ -130,10 +130,10 @@ typeerr: LABEL;
|
||||||
tab, s->st_gid, p->fts_statp->st_gid);
|
tab, s->st_gid, p->fts_statp->st_gid);
|
||||||
if (uflag)
|
if (uflag)
|
||||||
if (chown(p->fts_accpath, -1, s->st_gid))
|
if (chown(p->fts_accpath, -1, s->st_gid))
|
||||||
(void)printf(", not modified: %s)",
|
(void)printf(", not modified: %s)\n",
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
else
|
else
|
||||||
(void)printf(", modified)");
|
(void)printf(", modified)\n");
|
||||||
else
|
else
|
||||||
(void)printf(")\n");
|
(void)printf(")\n");
|
||||||
tab = "\t";
|
tab = "\t";
|
||||||
|
@ -145,10 +145,10 @@ typeerr: LABEL;
|
||||||
tab, s->st_mode, p->fts_statp->st_mode & MBITS);
|
tab, s->st_mode, p->fts_statp->st_mode & MBITS);
|
||||||
if (uflag)
|
if (uflag)
|
||||||
if (chmod(p->fts_accpath, s->st_mode))
|
if (chmod(p->fts_accpath, s->st_mode))
|
||||||
(void)printf(", not modified: %s)",
|
(void)printf(", not modified: %s)\n",
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
else
|
else
|
||||||
(void)printf(", modified)");
|
(void)printf(", modified)\n");
|
||||||
else
|
else
|
||||||
(void)printf(")\n");
|
(void)printf(")\n");
|
||||||
tab = "\t";
|
tab = "\t";
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
/* from: static char sccsid[] = "@(#)create.c 5.19 (Berkeley) 3/2/92"; */
|
/* from: static char sccsid[] = "@(#)create.c 5.19 (Berkeley) 3/2/92"; */
|
||||||
static char *rcsid = "$Id: create.c,v 1.5 1993/11/02 07:51:07 cgd Exp $";
|
static char *rcsid = "$Id: create.c,v 1.6 1993/11/17 11:00:56 cgd Exp $";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
|
@ -142,7 +142,7 @@ statf(p)
|
||||||
output(&indent, "uid=%u", p->fts_statp->st_uid);
|
output(&indent, "uid=%u", p->fts_statp->st_uid);
|
||||||
if (keys & (F_GID | F_GNAME) && p->fts_statp->st_gid != gid)
|
if (keys & (F_GID | F_GNAME) && p->fts_statp->st_gid != gid)
|
||||||
if (keys & F_GNAME && (gr = getgrgid(p->fts_statp->st_gid)))
|
if (keys & F_GNAME && (gr = getgrgid(p->fts_statp->st_gid)))
|
||||||
output(&indent, "gid=%s", gr->gr_name);
|
output(&indent, "gname=%s", gr->gr_name);
|
||||||
else /* if (keys & F_GID) */
|
else /* if (keys & F_GID) */
|
||||||
output(&indent, "gid=%u", p->fts_statp->st_gid);
|
output(&indent, "gid=%u", p->fts_statp->st_gid);
|
||||||
if (keys & F_MODE && (p->fts_statp->st_mode & MBITS) != mode)
|
if (keys & F_MODE && (p->fts_statp->st_mode & MBITS) != mode)
|
||||||
|
|
Loading…
Reference in New Issue