1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
Description: Ignore files stat on stdio (Closes: #518311).
Author: Jari Aalto <jari.aalto@cante.net>
Last-Update: 2013-03-02
Forwarded: Not-needed
---
flip.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
--- a/flip.c
+++ b/flip.c
@@ -317,7 +317,7 @@
#endif
}
- if (!touch)
+ if (!touch && ! use_stdio)
GETFT (infile, fname, timestamp); /* save current timestamp */
assert (which == IXTOMS || which == MSTOIX);
@@ -362,6 +362,8 @@
if (!ferror(outfile) && fflush(outfile) != EOF && fclose(outfile) != EOF) {
int moved;
+ if (use_stdio)
+ goto stdio_skip;
#ifdef IX
if (stat (tfname, &ofilestat)) {
/* can't get the file's permissions */
@@ -391,6 +393,10 @@
}
}
#endif /* IX */
+
+
+ stdio_skip:
+
// DELFILE (fname);
if (!use_stdio) {
moved = MVFILE (tfname, fname);
|