mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 07:28:56 +08:00
services.snapper: remove patch
This commit is contained in:
parent
63664f4fc7
commit
f42e1df555
@ -33,12 +33,5 @@ inputs:
|
|||||||
});
|
});
|
||||||
in
|
in
|
||||||
listToAttrs (map f (attrsToList services.snapper.configs));
|
listToAttrs (map f (attrsToList services.snapper.configs));
|
||||||
nixpkgs.config.packageOverrides = pkgs:
|
|
||||||
{
|
|
||||||
snapper = pkgs.snapper.overrideAttrs (attrs:
|
|
||||||
{
|
|
||||||
patches = (if (attrs ? patches) then attrs.patches else []) ++ [ ./snapper.patch ];
|
|
||||||
});
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
diff --git a/snapper/FileUtils.cc b/snapper/FileUtils.cc
|
|
||||||
index 9da572f..48f60fa 100644
|
|
||||||
--- a/snapper/FileUtils.cc
|
|
||||||
+++ b/snapper/FileUtils.cc
|
|
||||||
@@ -424,7 +424,7 @@ namespace snapper
|
|
||||||
v /= 62;
|
|
||||||
}
|
|
||||||
|
|
||||||
- int fd = open(name, O_RDWR | O_CREAT | O_EXCL | O_CLOEXEC, S_IRUSR | S_IWUSR);
|
|
||||||
+ int fd = open(name, O_RDWR | O_CREAT | O_EXCL | O_CLOEXEC, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
|
|
||||||
if (fd >= 0)
|
|
||||||
return fd;
|
|
||||||
else if (errno != EEXIST)
|
|
Loading…
Reference in New Issue
Block a user