Skip to contentSkip to conversation

do not use /usr/bin/env

PATCH Applied Marco d'Itri 2 participants 2 messages Sep 1, 2009

lore
Share & tools
lore
#0 lore raw

The C version of path_id does not look at the environment anymore, so there is no reason to empty it.

Signature · 2 lines
ciao,
Marco
rules/rules.d/78-sound-card.rules +1 -1
@@ -51,7 +51,7 @@ LABEL="skip_pci"
 ENV{ID_SERIAL}=="?*", ENV{ID_IFACE}=="?*", ENV{ID_ID}="$env{ID_BUS}-$env{ID_SERIAL}-$env{ID_IFACE}"
 ENV{ID_SERIAL}=="?*", ENV{ID_IFACE}=="", ENV{ID_ID}="$env{ID_BUS}-$env{ID_SERIAL}"
 
-ENV{ID_PATH}=="", IMPORT{program}="/usr/bin/env -i /lib/udev/path_id %p/controlC%n"
+ENV{ID_PATH}=="", IMPORT{program}="path_id %p/controlC%n"
 
 # The values used here for $SOUND_FORM_FACTOR and $SOUND_CLASS should be kept
 # in sync with those defined for PulseAudio's src/pulse/proplist.h
Applied
#1 lore raw
Quoted 2 lines · Marco d'Itri

The C version of path_id does not look at the environment anymore, so there is no reason to empty it.

Applied.

Thanks,
Kay