--- sysrc-3.2.1.txt 2011-12-31 02:20:32.000033000 +0000 +++ sysrc-3.2.2.txt 2012-01-03 17:17:52.000408000 +0000 @@ -2,11 +2,11 @@ # -*- tab-width: 4 -*- ;; Emacs # vi: set tabstop=4 :: Vi/ViM # -# Revision: 3.2.1 -# Last Modified: December 30th, 2011 +# Revision: 3.2.2 +# Last Modified: January 3rd, 2012 ############################################################ COPYRIGHT # -# (c)2010-2011. Devin Teske. All Rights Reserved. +# (c)2010-2012. Devin Teske. All Rights Reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -30,6 +30,7 @@ # SUCH DAMAGE. # # AUTHOR DATE DESCRIPTION +# dteske 2012.01.03 Minor bug fix to sysrc_delete (s/chmod/chown/). # dteske 2011.12.30 Minor bug fix for FreeBSD 9.0-CURRENT. # dteske 2011.01.15 Make `-A' override `-a' despite order-of-appearance. # dteske 2011.01.15 Add `-x' to remove variables from file(s). @@ -705,7 +706,7 @@ sysrc_delete() # permissions) to instead match the destination file. # chmod "$( stat -f '%#Lp' "$file" )" "$tmpfile" 2> /dev/null - chmod "$( stat -f '%u:%g' "$file" )" "$tmpfile" 2> /dev/null + chown "$( stat -f '%u:%g' "$file" )" "$tmpfile" 2> /dev/null # # Operate on the file, removing all occurrences, saving the