[MacPorts] #37002: plist files should use <UserName> rather than sudo

MacPorts noreply at macports.org
Thu Nov 15 10:19:47 PST 2012


#37002: plist files should use <UserName> rather than sudo
--------------------+--------------------------------
 Reporter:  dave@…  |      Owner:  macports-tickets@…
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:  2.1.2
 Keywords:          |       Port:  leafnode
--------------------+--------------------------------
 The plist files generated for leafnode contain fragments like

 {{{
 #!xml

                 <key>Program</key>
 <string>/usr/bin/sudo</string>
                 <key>ProgramArguments</key>
                 <array>
                         <string>/usr/bin/sudo</string>
                         <string>-u</string>
                         <string>_news</string>
                         <string>/opt/local/sbin/leafnode</string>
                 </array>
 }}}

 but presumably the following would be more appropriate


 {{{
 #!xml
                 <key>Username</key> <string>_news</string>
                 <key>ProgramArguments</key>
                 <array>
                         <string>/opt/local/sbin/leafnode</string>
                 </array>
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/37002>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list