print masks and modes in octal.

This commit is contained in:
christos 2003-05-03 15:37:07 +00:00
parent c5b60c55a3
commit e6cde3e511
3 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: mount_ados.c,v 1.16 2003/03/22 11:15:45 jdolecek Exp $ */
/* $NetBSD: mount_ados.c,v 1.17 2003/05/03 15:37:07 christos Exp $ */
/*
* Copyright (c) 1994 Christopher G. Demetriou
@ -36,7 +36,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: mount_ados.c,v 1.16 2003/03/22 11:15:45 jdolecek Exp $");
__RCSID("$NetBSD: mount_ados.c,v 1.17 2003/05/03 15:37:07 christos Exp $");
#endif /* not lint */
#include <sys/cdefs.h>
@ -159,7 +159,7 @@ mount_ados(argc, argv)
err(1, "%s on %s", dev, dir);
if (mntflags & MNT_GETARGS)
printf("uid=%d, gid=%d, mask=%d\n", args.uid, args.gid,
printf("uid=%d, gid=%d, mask=0%o\n", args.uid, args.gid,
args.mask);
exit (0);

View File

@ -1,4 +1,4 @@
/* $NetBSD: mount_msdos.c,v 1.27 2003/03/22 11:15:51 jdolecek Exp $ */
/* $NetBSD: mount_msdos.c,v 1.28 2003/05/03 15:37:08 christos Exp $ */
/*
* Copyright (c) 1994 Christopher G. Demetriou
@ -36,7 +36,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: mount_msdos.c,v 1.27 2003/03/22 11:15:51 jdolecek Exp $");
__RCSID("$NetBSD: mount_msdos.c,v 1.28 2003/05/03 15:37:08 christos Exp $");
#endif /* not lint */
#include <sys/cdefs.h>
@ -167,7 +167,7 @@ mount_msdos(argc, argv)
if (mntflags & MNT_GETARGS) {
char buf[1024];
(void)snprintb(buf, sizeof(buf), MSDOSFSMNT_BITS, args.flags);
printf("uid=%d, gid=%d, mask=%d, flags=%s\n", args.uid,
printf("uid=%d, gid=%d, mask=0%o, flags=%s\n", args.uid,
args.gid, args.mask, buf);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: mount_ntfs.c,v 1.8 2003/03/22 11:15:52 jdolecek Exp $ */
/* $NetBSD: mount_ntfs.c,v 1.9 2003/05/03 15:37:08 christos Exp $ */
/*
* Copyright (c) 1994 Christopher G. Demetriou
@ -35,7 +35,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: mount_ntfs.c,v 1.8 2003/03/22 11:15:52 jdolecek Exp $");
__RCSID("$NetBSD: mount_ntfs.c,v 1.9 2003/05/03 15:37:08 christos Exp $");
#endif
#include <sys/cdefs.h>
@ -202,7 +202,7 @@ mount_ntfs(argc, argv)
if (mntflags & MNT_GETARGS) {
char buf[1024];
(void)snprintb(buf, sizeof(buf), NTFS_MFLAG_BITS, args.flag);
printf("uid=%d, gid=%d, mode=%d, flags=%s\n", args.uid,
printf("uid=%d, gid=%d, mode=0%o, flags=%s\n", args.uid,
args.gid, args.mode, buf);
}
exit (0);