чување 6b04fd92948ff0a0f249679ca9150178ac66aa1f
родитељ 543d4697be3e6e569b9eca800c31c0529cc830a6
Аутор: Страхиња Радић <contact@strahinja.org>
Датум: Mon, 1 Aug 2022 10:30:48 +0200
Remove redundant patch
Signed-off-by: Страхиња Радић <contact@strahinja.org>
Diffstat:
измењених датотека: 1, додавања: 0(+), брисања: 78(-)
diff --git a/pat/sbase-galeb/sbase-tar-n.patch b/pat/sbase-galeb/sbase-tar-n.patch
@@ -1,78 +0,0 @@
-diff --git a/tar.1 b/tar.1
-index be2ebea..f7d27a0 100644
---- a/tar.1
-+++ b/tar.1
-@@ -15,6 +15,7 @@
- .Op Fl C Ar dir
- .Op Fl J | Fl Z | Fl a | Fl j | Fl z
- .Op Fl h
-+.Op Fl n
- .Fl c Ar path ...
- .Op Fl f Ar file
- .Sh DESCRIPTION
-@@ -36,6 +37,10 @@ as input | output archive instead of stdin | stdout.
- If '-', stdin | stdout is used.
- .It Fl m
- Do not preserve modification time.
-+.It Fl n
-+Do not recurse into directories. This flag is an extension to standard,
-+equivalent to GNU tar's
-+.Fl -no-recursion .
- .It Fl t
- List all files in the archive.
- .It Fl x
-diff --git a/tar.c b/tar.c
-index d3a9f3b..3f8daf9 100644
---- a/tar.c
-+++ b/tar.c
-@@ -63,7 +63,7 @@ static int tarfd;
- static ino_t tarinode;
- static dev_t tardev;
-
--static int mflag, vflag;
-+static int mflag, nflag, vflag;
- static int filtermode;
- static const char *filtertool;
-
-@@ -374,7 +374,7 @@ c(int dirfd, const char *name, struct stat *st, void *data, struct recursor *r)
- if (vflag)
- puts(r->path);
-
-- if (S_ISDIR(st->st_mode))
-+ if (S_ISDIR(st->st_mode) && !nflag)
- recurse(dirfd, name, NULL, r);
- }
-
-@@ -507,7 +507,7 @@ usage(void)
- {
- eprintf("usage: %s [-C dir] [-J | -Z | -a | -j | -z] -x [-m | -t] "
- "[-f file] [file ...]\n"
-- " %s [-C dir] [-J | -Z | -a | -j | -z] [-h] -c path ... "
-+ " %s [-C dir] [-J | -Z | -a | -j | -z] [-h] [-n] -c path ... "
- "[-f file]\n", argv0, argv0);
- }
-
-@@ -534,6 +534,9 @@ main(int argc, char *argv[])
- case 'm':
- mflag = 1;
- break;
-+ case 'n':
-+ nflag = 1;
-+ break;
- case 'J':
- case 'Z':
- case 'a':
-@@ -577,7 +580,12 @@ main(int argc, char *argv[])
- if (chdir(dir) < 0)
- eprintf("chdir %s:", dir);
- for (; *argv; argc--, argv++)
-- recurse(AT_FDCWD, *argv, NULL, &r);
-+ {
-+ if (!nflag)
-+ recurse(AT_FDCWD, *argv, NULL, &r);
-+ else
-+ archive(*argv);
-+ }
- break;
- case 't':
- case 'x':