Fix device name on 5.x
PR: 80512 Submitted by: sylvio cesar (maintainer)
This commit is contained in:
parent
9e4f960e50
commit
6b3985f4f1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=134562
11
sysutils/eject/files/patch-eject.c
Normal file
11
sysutils/eject/files/patch-eject.c
Normal file
@ -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);
|
Loading…
Reference in New Issue
Block a user