forked from ports/contrib
14 lines
327 B
Diff
14 lines
327 B
Diff
--- /usr/bin/ports.orig 2004-08-19 02:41:27.279404984 +0200
|
|
+++ /usr/bin/ports 2004-08-06 19:34:42.409150272 +0200
|
|
@@ -31,8 +31,8 @@
|
|
}
|
|
|
|
update_ports() {
|
|
- if [ "`id -u`" != "0" ]; then
|
|
- echo "$COMMAND: only root can update ports"
|
|
+ if [ $UID -eq 0 ]; then
|
|
+ echo "$COMMAND: root should not update ports"
|
|
exit 1
|
|
fi
|
|
|