aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authornovel <novel@FreeBSD.org>2005-05-03 23:04:33 +0800
committernovel <novel@FreeBSD.org>2005-05-03 23:04:33 +0800
commit94ceb984a58eea2bc65a72729ea8935657dce9b0 (patch)
tree937f85369df088bd24fe793007631cfc06550bbf /sysutils
parente0e72174b7be2a85f5ff18b7bc2da91a48b3739c (diff)
downloadfreebsd-ports-gnome-94ceb984a58eea2bc65a72729ea8935657dce9b0.tar.gz
freebsd-ports-gnome-94ceb984a58eea2bc65a72729ea8935657dce9b0.tar.zst
freebsd-ports-gnome-94ceb984a58eea2bc65a72729ea8935657dce9b0.zip
Fix device name on 5.x
PR: 80512 Submitted by: sylvio cesar (maintainer)
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/eject/files/patch-eject.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sysutils/eject/files/patch-eject.c b/sysutils/eject/files/patch-eject.c
new file mode 100644
index 000000000000..0f1efac8fed0
--- /dev/null
+++ b/sysutils/eject/files/patch-eject.c
@@ -0,0 +1,11 @@
+--- eject.c.orig Tue May 3 14:59:19 2005
++++ eject.c Tue May 3 15:01:30 2005
+@@ -133,7 +133,7 @@
+ int sts;
+ struct stat sb;
+
+- if (asprintf(device, "/dev/%sc", name) == -1)
++ if (asprintf(device, "/dev/%s", name) == -1)
+ return sts;
+ if (vflag || nflag) {
+ printf("%s: using device %s\n", program, device);