0f95f34341
OK landry@, ajacoutot@
19 lines
652 B
Plaintext
19 lines
652 B
Plaintext
$OpenBSD: patch-FSNode_FSNodeRep_m,v 1.2 2011/04/18 12:33:04 sebastia Exp $
|
|
|
|
OpenBSD and NetBSD don't have the -p mount option
|
|
|
|
--- FSNode/FSNodeRep.m.orig Sat Jun 19 01:21:36 2010
|
|
+++ FSNode/FSNodeRep.m Tue Apr 5 19:00:32 2011
|
|
@@ -756,8 +756,10 @@ static FSNodeRep *shared = nil;
|
|
NSPipe *pipe = [NSPipe pipe];
|
|
NSFileHandle *handle = [pipe fileHandleForReading];
|
|
|
|
- [task setLaunchPath: @"mount"];
|
|
+ [task setLaunchPath: @"/sbin/mount"];
|
|
+#if !defined(__OpenBSD__) && !defined(__NetBSD__)
|
|
[task setArguments: [NSArray arrayWithObject: @"-p"]];
|
|
+#endif
|
|
[task setStandardOutput: pipe];
|
|
|
|
[task launch];
|