Skip to contentSkip to conversation

scsi_id temporary directory

PATCH In review Marco d'Itri 2 participants 2 messages Jan 4, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi_id temporary directory

/tmp is not suitable as a temporary directory because it's usually mounted read only at the time udevstart runs the program.

Signature · 2 lines
ciao,
Marco
extras/scsi_id/scsi_id.c +2 -2
diff -ruNp udev-050.orig/extras/scsi_id/scsi_id.c udev-050/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)
#1 lore raw
Quoted 2 lines · Marco d'Itri

/tmp is not suitable as a temporary directory because it's usually mounted read only at the time udevstart runs the program.

OK ...

Do you think it should have an option like "-t directory", defaulting to /dev?

-- Patrick Mansfield

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel