[Bug 195963] New: [patch] emulators/pipelight: fix pipelight-mkufs, add usergroup
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Dec 14 12:33:03 UTC 2014
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195963
Bug ID: 195963
Summary: [patch] emulators/pipelight: fix pipelight-mkufs, add
usergroup
Product: Ports Tree
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: kmoore at FreeBSD.org
Reporter: f0andrey at gmail.com
Flags: maintainer-feedback?(kmoore at FreeBSD.org)
Assignee: kmoore at FreeBSD.org
When the user does not have the same name group, the script pipelight-mkufs
does not correctly work out
super-block backups (for fsck_ffs -b #) at:
192, 205056, 409920, 614784
chown: andrey: illegal group name
ZVOL created and mounted to: /home/andrey/.wine-pipelight
# groups andrey
wheel operator _pkcs11
Hotfix
--- emulators/pipelight/files/pipelight-mkufs.in 2014-10-24
01:20:15.503045748 +0400
+++ emulators/pipelight/files/pipelight-mkufs.in 2014-12-14
15:07:57.049832379 +0300
@@ -85,8 +85,11 @@
exit 1
fi
+# Get user group
+usergroup=`groups $username | cut -d " " -f 1`
+
# Chown the directory
-chown $username:$username ${userhome}/.wine-pipelight
+chown $username:$usergroup ${userhome}/.wine-pipelight
# Save to fstab
echo "/dev/zvol/$zpool/$username-pipelight ${userhome}/.wine-pipelight
ufs rw,late 0 0" >> /etc/fstab
--- Comment #1 from Bugzilla Automation <bugzilla at FreeBSD.org> ---
Auto-assigned to maintainer kmoore at FreeBSD.org
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list