diff options
author | Roman Bogorodskiy <novel@FreeBSD.org> | 2005-05-03 15:04:33 +0000 |
---|---|---|
committer | Roman Bogorodskiy <novel@FreeBSD.org> | 2005-05-03 15:04:33 +0000 |
commit | 6b3985f4f108341ad7f114cb27fd1b6facbeff01 (patch) | |
tree | b7ad02e0af8c3eea7d3374310f36f9f63c7fc7e3 /sysutils | |
parent | Add a new port for pkg_trackinst 0.2, (diff) |
Fix device name on 5.x
PR: 80512
Submitted by: sylvio cesar (maintainer)
Notes
Notes:
svn path=/head/; revision=134562
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/eject/files/patch-eject.c | 11 |
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); |