From b76155431d2aece641af663146c3e9fb9cb1c0e2 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Fri, 10 Aug 2018 05:35:54 +0000 Subject: [PATCH] add comments on future functionality for zpm-extract --- zpm-extract.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/zpm-extract.c b/zpm-extract.c index c081c30..026b5df 100644 --- a/zpm-extract.c +++ b/zpm-extract.c @@ -9,6 +9,18 @@ #include "zpm.h" +/* more usage: + * -t : use a temp file, then move into place, possible reverse the sense + * -u : userid + * -g : groupid + * -m : mode (i.e. final mode) + * -l : log all actions + * -d : logging database file, if different + * + * check if file exists, if it does, and has the same hash, do + * nothing, unless -f is given + */ + #if 1 int main(int ac, char **av){ struct zpm pkg; @@ -20,8 +32,9 @@ int main(int ac, char **av){ return 1; } zpm_open(&pkg, av[1]); - rv = zpm_extract(&pkg, av[2], av[3], mode); + rv = zpm_extract(&pkg, av[2], av[3], 0600); zpm_close(&pkg); + return rv ? 0 : 1; } #else -- 2.40.0