summaryrefslogtreecommitdiffstats
path: root/usr.sbin/chown
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2002-06-27 21:23:16 +0000
committerjmallett <jmallett@FreeBSD.org>2002-06-27 21:23:16 +0000
commit325c48d385c1cbdfe85f44e050eaf399960376ae (patch)
tree7a4deb7dd08ac121b2ec1ce9edd7deb16aaf24be /usr.sbin/chown
parentfd8dc1333d32e1394441ee818cba3e0f8e23b052 (diff)
downloadFreeBSD-src-325c48d385c1cbdfe85f44e050eaf399960376ae.zip
FreeBSD-src-325c48d385c1cbdfe85f44e050eaf399960376ae.tar.gz
In the SUPPORT_DOT case, warn that seperation with a period is deprecated.
In -STABLE, this is default, in -CURRENT it is not, which leads to many a headache for a user coming to -CURRENT without remembering this fact. It is one of the POLA violations we have not avoided by preparing the users for it appopriately. Therefore, a warnx(3) is added here, explicitly to be MFC'd shortly to start the re-education process rolling. Reviewed by: General murmurs of approval in that IRC channel. MFC after: 3 days
Diffstat (limited to 'usr.sbin/chown')
-rw-r--r--usr.sbin/chown/chown.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/chown/chown.c b/usr.sbin/chown/chown.c
index b015458..88311d7 100644
--- a/usr.sbin/chown/chown.c
+++ b/usr.sbin/chown/chown.c
@@ -145,6 +145,7 @@ main(argc, argv)
}
#ifdef SUPPORT_DOT
else if ((cp = strchr(*argv, '.')) != NULL) {
+ warnx("seperation of user and group with a period is deprecated");
*cp++ = '\0';
a_gid(cp);
}
OpenPOWER on IntegriCloud