Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-16-2004, 03:07 PM   #1
LQ Newbie
Registered: Aug 2004
Distribution: suse9.1
Posts: 3

Rep: Reputation: 0
Angry why does sftp change mtime file attribute?

Why does the file modification timestamp get changed when I "get" a file via sftp?

I recently installed SuSE 9.1 machines in my home office and see the same behavior on both.. Have not seen this on Solaris or AIX...
Old 10-16-2004, 03:49 PM   #2
Senior Member
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52
simple answer
"Gnu is Not Unix"
Gnu philosophy which is revolutionaly in so many ways runs on several basic assumptions about proper coding.
One of those is "no special cases".
when you copy a file locally the new file gets a new (current) time stamp (it never even existed before !)
the same should happen when you copy a file from a remote location no matter how it's done.
Old 10-17-2004, 06:11 PM   #3
LQ Newbie
Registered: Aug 2004
Distribution: suse9.1
Posts: 3

Original Poster
Rep: Reputation: 0
?? I'm not concerned about local file copies. I'm talking about transferring files between systems via sftp.

When the target system is Solaris or AIX, mtime is not modified. When the target is either of my SuSE 9.1 systems, mtime is modified.

If foo_bar_foo's premise is absolutely true, then I should get the same behavior regardless of the *nix flavor I am using, but that is not what I am seeing.

Is there a way to configure behavior of mtime when using sftp? I sure don't see anything obvious in the config files...
Old 10-17-2004, 09:42 PM   #4
LQ Newbie
Registered: Aug 2004
Distribution: suse9.1
Posts: 3

Original Poster
Rep: Reputation: 0
Hmm ... upon further experimentation on several different OS's I retract my original contention that mtime was mis-behaving in Linux.

My apologies...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Heeelp! Preserving file modification attribute Slackovado Slackware 4 04-01-2005 02:31 AM
what sort of file attribute is this: b--Srws-wt BrianK Linux - General 6 12-17-2004 11:26 PM
%file attribute for RPM SPEC files Brian of Gep Fedora 0 06-15-2004 07:12 PM
file attribute question swmok Debian 2 05-20-2004 12:16 AM
VFAT file attribute SloppyO Linux - General 2 09-10-2001 11:24 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:29 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration