File: fix_sudo

package info (click to toggle)
smail 3.2.0.115-7.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 5,192 kB
  • ctags: 4,249
  • sloc: ansic: 48,248; sh: 4,321; makefile: 2,074; perl: 1,147; awk: 884; yacc: 428; sed: 256; xml: 57
file content (8 lines) | stat: -rw-r--r-- 150 bytes parent folder | download
1
2
3
4
5
6
7
8
#!/bin/sh


if [ `env | grep SUDO_USER | wc -l` -eq 1 ] && id $SUDO_USER >/dev/null 2>&1
then
	find . -name 'defs.*' | xargs chown $SUDO_USER
fi