diff --git a/MacPass/MPTemporaryFileStorage.m b/MacPass/MPTemporaryFileStorage.m index 67d72a69..ae00f539 100644 --- a/MacPass/MPTemporaryFileStorage.m +++ b/MacPass/MPTemporaryFileStorage.m @@ -117,16 +117,9 @@ } + (void)_runCleanupForPath:(NSString *)path { - /* - * This crashes with mac 10.12.1 because the command /usr/bin/srm doesnt come with the OS. - * This leads to leaf the plain data at drive. - * - * 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]]; + NSTask *task = [[NSTask alloc] init]; + [task setLaunchPath:@"/bin/rm"]; + [task setArguments:@[@"-P", path]]; [task launch]; [task waitUntilExit]; }