Fix staff > wheel group ownership

This commit is contained in:
Nindi Gill 2022-12-25 16:05:21 +11:00
parent 7d0428701d
commit ca1af45d7d
No known key found for this signature in database
GPG key ID: FF9A7FD590D4F4B1
3 changed files with 3 additions and 3 deletions

View file

@ -138,7 +138,7 @@ struct ListRow: View {
let ownerAccountName: String = attributes[.ownerAccountName] as? String, let ownerAccountName: String = attributes[.ownerAccountName] as? String,
ownerAccountName == NSUserName(), ownerAccountName == NSUserName(),
let groupOwnerAccountName: String = attributes[.groupOwnerAccountName] as? String, let groupOwnerAccountName: String = attributes[.groupOwnerAccountName] as? String,
groupOwnerAccountName == "staff" else { groupOwnerAccountName == "wheel" else {
alertType = .cacheDirectory alertType = .cacheDirectory
showAlert = true showAlert = true
return return

View file

@ -3,7 +3,7 @@
<plist version="1.0"> <plist version="1.0">
<dict> <dict>
<key>BuildHash</key> <key>BuildHash</key>
<string>977665398f7c4fc4f84fda51c877a98d25ab4a8ed94c7c532dc7070c8e1c845d</string> <string>a9b37eeef3f02041cf0206471219c999c03928fa8d1f3c83475e74e8fec8e196</string>
<key>CFBundleIdentifier</key> <key>CFBundleIdentifier</key>
<string>com.ninxsoft.mist.helper</string> <string>com.ninxsoft.mist.helper</string>
<key>CFBundleInfoDictionaryVersion</key> <key>CFBundleInfoDictionaryVersion</key>

View file

@ -48,7 +48,7 @@ struct HelperToolCommandRunner {
let attributes: [FileAttributeKey: Any] = [ let attributes: [FileAttributeKey: Any] = [
.posixPermissions: 0o755, .posixPermissions: 0o755,
.ownerAccountName: ownerAccountName, .ownerAccountName: ownerAccountName,
.groupOwnerAccountName: "staff" .groupOwnerAccountName: "wheel"
] ]
do { do {