mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 11:42:30 +00:00
Fixed: Missing /usr/bin/srm is preplaced by /bin/rm -P
This commit is contained in:
@@ -117,16 +117,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
+ (void)_runCleanupForPath:(NSString *)path {
|
+ (void)_runCleanupForPath:(NSString *)path {
|
||||||
/*
|
NSTask *task = [[NSTask alloc] init];
|
||||||
* This crashes with mac 10.12.1 because the command /usr/bin/srm doesnt come with the OS.
|
[task setLaunchPath:@"/bin/rm"];
|
||||||
* This leads to leaf the plain data at drive.
|
[task setArguments:@[@"-P", path]];
|
||||||
*
|
|
||||||
* The data should be deleted by us. Further the plain data sould never touch the drive.
|
|
||||||
*/
|
|
||||||
|
|
||||||
NSTask *task = [[NSTask alloc] init];
|
|
||||||
[task setLaunchPath:@"/usr/bin/srm"];
|
|
||||||
[task setArguments:@[@"-m", path]];
|
|
||||||
[task launch];
|
[task launch];
|
||||||
[task waitUntilExit];
|
[task waitUntilExit];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user