Fix portmap running now as nobody (#2317)
authorFlorian Fainelli <florian@openwrt.org>
Sat, 8 Sep 2007 18:29:51 +0000 (18:29 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sat, 8 Sep 2007 18:29:51 +0000 (18:29 +0000)
SVN-Revision: 8693

net/portmap/Makefile
net/portmap/files/portmap.init

index 0ba46c6a9fd2b5c5f6bd606bfee77969454b892d..9c8ddf052351c48e6b89065f8512125f8ce751c4 100644 (file)
@@ -35,6 +35,7 @@ endef
 
 MAKE_FLAGS += \
        CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -DHOSTS_ACCESS -DFACILITY=LOG_DAEMON -DIGNORE_SIGCHLD" \
+       RPCUSER="nobody" \
        WRAP_LIB="-L$(STAGING_DIR)/usr/lib -lwrap" \
        all
 
index f42eabb366d54a38a0a2f9a2753ac0a6b12189e5..3bbfb573f8c2239b48fd74d7f66fb52dd8613be5 100644 (file)
@@ -7,7 +7,7 @@ DEFAULT=/etc/default/$BIN
 
 start() {
        [ -f $DEFAULT ] && . $DEFAULT
-       $BIN -u 0 -g 0 $OPTIONS
+       $BIN $OPTIONS
 }
 
 stop() {