chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf100ca
)
path_id: remove subsystem whitelist
author
Kay Sievers
<kay.sievers@vrfy.org>
Fri, 18 Apr 2008 19:08:07 +0000
(21:08 +0200)
committer
Kay Sievers
<kay.sievers@vrfy.org>
Fri, 18 Apr 2008 19:08:07 +0000
(21:08 +0200)
extras/path_id/path_id
patch
|
blob
|
history
diff --git
a/extras/path_id/path_id
b/extras/path_id/path_id
index a3a627e40794b00060af690a69656be3fab15b33..7a37700289d89841a0d54367835592e4e50a48e4 100755
(executable)
--- a/
extras/path_id/path_id
+++ b/
extras/path_id/path_id
@@
-549,7
+549,7
@@
handle_device () {
;;
*)
mode=""
- ;;
+
;;
esac
if [ "$d" ]; then
d="$d-${rewind}st${mode}"
@@
-557,22
+557,9
@@
handle_device () {
fi
}
-case "$TYPE" in
- block)
- handle_device
- echo "ID_PATH=$d"
- ;;
- scsi_tape)
- handle_device
- echo "ID_PATH=$d"
- ;;
- input)
- handle_device
- echo "ID_PATH=$d"
- ;;
- *)
- RESULT=1
- ;;
-esac
-
-exit $RESULT
+handle_device
+if [ -z "$d" ]; then
+ exit 1
+fi
+echo "ID_PATH=$d"
+exit 0