summaryrefslogtreecommitdiff
path: root/extras/scsi_id/scsi_id.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2005-09-18 04:49:23 +0200
committerKay Sievers <kay.sievers@suse.de>2005-09-18 04:49:23 +0200
commit0e5f8a1fcc4b2bb020d865075bb8e543f5b0c230 (patch)
treeda9865a485af3f053443d02926c6a197c6607259 /extras/scsi_id/scsi_id.c
parenta3f129d054395019d4b2385dede233eb12425c78 (diff)
scsi_id: switch temporary node creation to /dev
/tmp is not writable on most systems, so just use /dev to create a temporary node. If called from a udev rule, "-d $tempnode" should be used and udev will create a temporary node and pass the name before calling scsi_id. Also remove gen_scsi_id_udev_rules.sh per Patrick's request, as it's no longer needed with the persistent disk links. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'extras/scsi_id/scsi_id.c')
-rw-r--r--extras/scsi_id/scsi_id.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extras/scsi_id/scsi_id.c b/extras/scsi_id/scsi_id.c
index e997be9956..39391f6e2e 100644
--- a/extras/scsi_id/scsi_id.c
+++ b/extras/scsi_id/scsi_id.c
@@ -44,8 +44,8 @@
/*
* temporary names for mknod.
*/
-#define TMP_DIR "/tmp"
-#define TMP_PREFIX "scsi"
+#define TMP_DIR "/dev"
+#define TMP_PREFIX "tmp-scsi"
/*
* XXX Note the 'e' (send output to stderr in all cases), and 'c' (callout)