Give ownership to the _saned user by default.

This commit is contained in:
ajacoutot 2010-11-30 08:14:05 +00:00
parent cbdb3f818c
commit 583504430a
2 changed files with 11 additions and 3 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.31 2010/11/27 11:36:00 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.32 2010/11/30 08:14:05 ajacoutot Exp $
COMMENT= API for accessing scanners, backends
DISTNAME= sane-backends-1.0.21
REVISION= 5
REVISION= 6
PATCHFILES= sane-backends-1.0.21-i18n.patch
PATCH_DIST_STRIP= -p1

View File

@ -1,14 +1,22 @@
#!/bin/sh
#
# $OpenBSD: saned.rc,v 1.2 2010/10/29 12:54:43 ajacoutot Exp $
# $OpenBSD: saned.rc,v 1.3 2010/11/30 08:14:05 ajacoutot Exp $
. /etc/rc.d/rc.subr
daemon="${TRUEPREFIX}/libexec/saned"
daemon_flags="-a _saned"
rc_pre() {
[ -e /dev/uscanner0 ] && chgrp _saned /dev/uscanner0
}
rc_reload() {
rc_err "$0: reload is not supported"
}
rc_post() {
[ -e /dev/uscanner0 ] && chgrp wheel /dev/uscanner0
}
rc_cmd $1