aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorshige <shige@FreeBSD.org>2001-04-20 21:14:16 +0800
committershige <shige@FreeBSD.org>2001-04-20 21:14:16 +0800
commit6ef77a4c92e776206c45142d1c513e7aaadba1f4 (patch)
tree3d0011429ba76afdf4bc5b1d7d50cb5421b55475 /sysutils
parent43af15c0f33bdc27321be5ba311a41158e9dbe3a (diff)
downloadfreebsd-ports-gnome-6ef77a4c92e776206c45142d1c513e7aaadba1f4.tar.gz
freebsd-ports-gnome-6ef77a4c92e776206c45142d1c513e7aaadba1f4.tar.zst
freebsd-ports-gnome-6ef77a4c92e776206c45142d1c513e7aaadba1f4.zip
Fix fatal error when printing error message(using device message).
Submitted by: Kenneth Ingham <ingham@i-pi.com>
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/eject/files/patch-aa7
1 files changed, 4 insertions, 3 deletions
diff --git a/sysutils/eject/files/patch-aa b/sysutils/eject/files/patch-aa
index aa38c14c55f1..20f9b91515ae 100644
--- a/sysutils/eject/files/patch-aa
+++ b/sysutils/eject/files/patch-aa
@@ -1,5 +1,5 @@
---- eject.c.orig Mon Aug 21 18:49:55 2000
-+++ eject.c Mon Aug 21 19:00:45 2000
+--- eject.c.orig Tue Jan 4 23:42:12 2000
++++ eject.c Fri Apr 20 22:10:06 2001
@@ -43,8 +43,8 @@
extern int optind;
@@ -59,7 +59,8 @@
+ if (asprintf(device, "/dev/%sc", name) == -1)
+ return sts;
if (vflag || nflag) {
- printf("%s: using device %s\n", program, device);
+- printf("%s: using device %s\n", program, device);
++ printf("%s: using device %s\n", program, *device);
}
- sts = stat(device, &sb);
+ sts = stat(*device, &sb);