diff options
author | lum <lum@cvs.openbsd.org> | 2011-05-12 10:38:28 +0000 |
---|---|---|
committer | lum <lum@cvs.openbsd.org> | 2011-05-12 10:38:28 +0000 |
commit | 6ec8d2ad30b8b989e23ef97f622375348fb3cf43 (patch) | |
tree | 43d7146a8918caf654c2d094e09731a4cec4ba5b /usr.sbin | |
parent | 24e48b3e7c54742c388ebccbd06a1050aeb7c7ce (diff) |
Add quotations around the value of name=value pairs that are missing them.
This removes a couple of "use warnings;" error messages.
Whether ' or " is used should mean string is taken literally once parsed.
ok halex@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/adduser/adduser.perl | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/usr.sbin/adduser/adduser.perl b/usr.sbin/adduser/adduser.perl index 78ef393b64b..c19ffeec8d2 100644 --- a/usr.sbin/adduser/adduser.perl +++ b/usr.sbin/adduser/adduser.perl @@ -1,6 +1,6 @@ #!/usr/bin/perl # -# $OpenBSD: adduser.perl,v 1.55 2011/05/12 05:13:42 lum Exp $ +# $OpenBSD: adduser.perl,v 1.56 2011/05/12 10:38:27 lum Exp $ # # Copyright (c) 1995-1996 Wolfram Schneider <wosch@FreeBSD.org>. Berlin. # All rights reserved. @@ -90,7 +90,7 @@ sub variables { $etc_login_conf = "/etc/login.conf"; @pwd_mkdb = ("pwd_mkdb", "-p"); # program for building passwd database $encryptionmethod = "auto"; - $rcsid = '$OpenBSD: adduser.perl,v 1.55 2011/05/12 05:13:42 lum Exp $'; + $rcsid = '$OpenBSD: adduser.perl,v 1.56 2011/05/12 10:38:27 lum Exp $'; # List of directories where shells located @path = ('/bin', '/usr/bin', '/usr/local/bin'); @@ -1580,6 +1580,7 @@ sub config_write { # Note: adduser reads *and* writes this file. # You may change values, but don't add new things before the # line ``$do_not_delete'' +# Also, unquoted strings may cause warnings # # verbose = [0-2] @@ -1587,7 +1588,7 @@ verbose = $verbose # Get new password for new users # defaultpasswd = yes | no -defaultpasswd = $defaultpasswd +defaultpasswd = "$defaultpasswd" # Default encryption method for user passwords # Methods are all those listed in login.conf(5) @@ -1623,14 +1624,14 @@ shellpref = ($shpref) defaultshell = "$defaultshell" # defaultgroup ('USER' for same as username or any other valid group) -defaultgroup = $defaultgroup +defaultgroup = "$defaultgroup" # new users get this uid uid_start = $uid_start uid_end = $uid_end # default login.conf(5) login class -defaultclass = $defaultclass +defaultclass = "$defaultclass" # login classes available from login.conf(5) # login_classes = ('default', 'daemon', 'staff') |