Bug 142687

Summary: previously included patch for touch options "backward"/"forward" got dropped
Product: [Fedora] Fedora Reporter: Moritz Barsnick <moritz>
Component: coreutilsAssignee: Tim Waugh <twaugh>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideKeywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-12-13 09:39:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
original patch to add differential time (forward/backward) options to "touch"
none
patch to add the same options to "touch" in coreutils none

Description Moritz Barsnick 2004-12-12 19:43:13 UTC
Description of problem:
Previously (perhaps only in fileutils, perhaps during coreutils times 
as well), there was a patch included which gave "touch" special 
options to set the date of a file back or forwards by a certain 
amount of seconds.

Version-Release number of selected component (if applicable):
5.2.1-34

How reproducible:
always

Steps to Reproduce:
1. touch --help | grep -E "\-(B|F)" 
  
Actual results:
(nothing)

Expected results:
  -B SEC, --backward=SEC date back SEC seconds
  -F SEC, --forward=SEC  date forward SEC seconds

Additional info:
I thought this patch was also available as a bugzilla attachment, but 
I can't find it. It was definitely originally from one of RedHat's 
SRC RPMs. Either fileutils or even ported to coreutils, as I said.

I'll attach the original and an updated version of the patch an beg 
you to reinclude it. It is very practical, e.g. if you borked 
something by having a wrong BIOS date.

I actually recommend you to submit this upstream. :) I have my doubts 
about the diff being given as int, but guess it's okay for a start. :
)

Comment 1 Moritz Barsnick 2004-12-12 19:45:25 UTC
Created attachment 108410 [details]
original patch to add differential time (forward/backward) options to "touch"

This is as close to the patch originally provided by RedHat as it can be. This
is for reference, it doesn't apply to current coreutils. New patch will follow
below.

Comment 2 Moritz Barsnick 2004-12-12 19:48:11 UTC
Created attachment 108411 [details]
patch to add the same options to "touch" in coreutils

This patch actually applies against coreutils-5.2.1. I had to ommit some
sections due to code change, but it still perfectly "works for me".

Comment 3 Tim Waugh 2004-12-13 09:39:03 UTC
Dropped intentionally.  Use --date="+n seconds"/--date="-n seconds" instead.

Comment 4 Moritz Barsnick 2004-12-13 12:39:58 UTC
Ah, thanks, I get the point!

"Relative items in date strings" was the info section I should have looked for.

Mea culpa and sorry for wasting your time,
Moritz