- don't free user-supplied string (via -e)
[oweals/busybox.git] / util-linux / fdisk_sun.c
index 427efbee39049e92148a7ffe2c79845b358b12fb..d1a436b4ae0de93b676af1bffa6f13abc5c42556 100644 (file)
@@ -181,7 +181,7 @@ sun_autoconfigure_scsi(void)
                id[0] & 0xff,
                (id[0]>>8) & 0xff
        );
-       pfd = fopen("/proc/scsi/scsi", "r");
+       pfd = fopen_for_read("/proc/scsi/scsi");
        if (!pfd) {
                return NULL;
        }