mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-02 01:18:08 +01:00
Ever since an old patch version, it has (for reasonable security reasons) not supported patched with ../ in the filename. Many of our patches have been relying on this behaviour being OK, because we start off with an ancient patch version that didn't perform such checks. As soon as we need this behaviour after we build a newer patch though, we will have problems. So, let's change the policy. Patches are relative to where tarballs are extracted, rather than the "working directory" - e.g. have patches for `coreutils-9.4/src/cp.c` instead of `src/cp.c`. Keeping this consistent has a few implications; - patches are applied from the build/ directory in bash era now, with `-p0` - when patches are manually applied in the bash era, use `-p` as required, usually `-p1` - in kaem era where patches are always manually applied, `-p1` is used
19 lines
642 B
Diff
19 lines
642 B
Diff
SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
getdate.c is pre-compiled from getdate.y
|
|
At this point we don't have bison yet and in any case getdate.y does not
|
|
compile when generated with modern bison.
|
|
|
|
--- coreutils-5.0/src/touch.c.orig 2021-03-13 18:16:05.344355958 +0000
|
|
+++ coreutils-5.0/src/touch.c 2021-03-13 18:16:26.204891355 +0000
|
|
@@ -306,7 +306,7 @@
|
|
|
|
case 'd':
|
|
flexible_date++;
|
|
- newtime = get_date (optarg, NULL);
|
|
+ newtime = 0;
|
|
if (newtime == (time_t) -1)
|
|
error (EXIT_FAILURE, 0, _("invalid date format %s"), quote (optarg));
|
|
date_set++;
|