Displaying 20 results from an estimated 1000 matches similar to: "Sys.setFileTime()"
1999 Nov 17
6
Samba 2.0.6, MKS' touch.exe, and file/dir time stamps
Hello all,
we are experiencing problems with samba 2.0.6 and the MKS touch command.
during our builds, we touch files and directories so that our make
dependencies work correctly. Unfortunately, it seems that MKS' touch.exe
doesn't actually change the time stamp of a file or directory. The
command returns without an error, but the timestamp does not change.
The same problem exists
2004 Nov 09
2
AW: Permissions problem with 3.0.8
We use LDAP backend and Linux 2.6.
It happens only --with-acl-support.
This 2 errors I found in the level 10 log when I try to copy a fresh copied
file a second time on itself (permissions of test file are -r-xrw----, user
and group match)
Maybe the attribute mapping goes another path with acl support?
3.0.7 works fine.
Daniel
[2004/11/09 17:02:02, 10] smbd/open.c:open_file_shared1(1038)
2001 Nov 16
1
Problem with SetFileTime Win32 API call
Hi,
We have a build utility that runs on a w2k machine and needs to set file
creation, modified and last access times. This is done by calling the
SetFileTime Win32 API function. This works fine with Windows local
drives and network shares. With samba shares only the last modified time
is set, creation time is not affected.
Is it possible to get this to work?
Thanks in advance
Alex
2013 Apr 20
1
One tiny Windows Unicode patch
I have been doing some heavy testing with the new FLAC version, and I
found that CreateFile function in grabbag had been left out of UTF-8
treatment at some point. This causes re-encoding an existing flac to the
same name to break the file if it contains non-ascii characters.
Attached patch fixes this.
-------------- next part --------------
diff --git a/include/share/win_utf8_io.h
1999 Apr 08
0
Keep-timestamp-in-`get'-patch for smbclient in samba-2.0.3
--------
--Multipart_Thu_Apr__8_13:33:51_1999-1
Content-Type: text/plain; charset=US-ASCII
Hello guys,
I always wondered why smbclient keeps timestamp in `put'ting a file
but does not keep it in `get'ting a file. Alternative to keep the
time stamp in `get'ting file is to use -Tc option or smbtar script,
but they are a bit hairy for interactive use, and it can only dump
files with an
2002 Sep 10
0
[PATCH] Add --preserve-atime switch to rsync
In the past there have been discussions about adding a switch to rsync to
preserve the atime on files being copied by rsync. I needed this function
for a project I'm working on and decided to invent it. I've attached the
diffs. Note that this has the limitations describe in previous emails,
namely that preserving atime causes ctime to not be preserved.
*** Patch follows ***
***
2004 Apr 10
0
patches for copying atimes
Hi.
Here's a patch for copying the atimes of files when -t/--times is
given. I bumped the protocol to 29 since it sends more data over the
wire. It obviously does not send the atime if it's sending data to an
older rsync version.
It passes all the tests (including the added atime.test) for me on a:
Linux Debian/3.0 gcc 2.95.4 (debian), glibc 2.2.5 system.
Any questions/feedback? I
2002 Jul 08
0
[Bug 344] New: syntax error in bsd-misc.c / utimes()
http://bugzilla.mindrot.org/show_bug.cgi?id=344
Summary: syntax error in bsd-misc.c / utimes()
Product: Portable OpenSSH
Version: -current
Platform: ix86
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: Build system
AssignedTo: openssh-unix-dev at mindrot.org
2019 Aug 09
0
[PATCH] Switch to utimensat for newer POSIX versions
Some libcs like uClibc-ng can optionally disable deprecated functions.
utime is one of them. When done so, both the header and the function go
missing.
This fixes flac_utime to work in such a situation.
---
include/share/compat.h | 10 +++++++++-
src/libFLAC/metadata_iterators.c | 9 +++++++--
src/share/grabbag/file.c | 9 +++++++--
3 files changed, 23 insertions(+), 5
2006 Jan 24
1
propagate atimes with rsync-2.6.6 (fwd)
Dear Martin Pool.
We regularly use rsync for making backups of our file systems but we have
noticed that the atimes are not transferred with the files and are also
always updated on the sender's side. Therefore, we have created a modified
version of rsync based on rsync-2.6.6 protocol version 29 which transfers
the access times with the transferred files and also allows to preserve
the access
2006 Apr 19
0
[patch] Re: Test migration (IMAP copy) and INTERNALDATE?]
I haven't been able to find what is responsible for altering the time on
APPENDed mail, but was able to come up with a temporary workaround ...
simply calling utime() later on in the process resolves it.
Below is my patch.
Steve
--- dovecot-1.0.beta7-orig/src/lib-storage/index/maildir/maildir-save.c
2006-03-25 05:53:43.000000000 -0500
+++
2000 Jan 20
1
MS Excel/NT/Samba timestamp - serious problem, bug?
A rather distressing timestamp issue (to multiple users here). Anyone
seen similar behavior or have a suggestion/solution?
Problem:
Opening and closing an excel file (no changes/keystrokes to file) on
the Samba server causes the file to be saved with time stamp of
closing. (There is no autosave set on Excel - also see other info below)
MS Excel 97 SR-2
NT 4.0 SP5
Solaris 2.6 or 2.7 (2
2004 Apr 20
1
improved atime patch
I posted a patch a few days ago that adds copying of atime. At that
time, it was just enabled with -t/--times. After some time, we have
figured out that that choice might not have been the best. Here's a
new version of the patch (relative to CVS) that adds -A/--copy-atime
instead. It also includes a test case.
Any feedback on this patch and/or the previous one that I posted?
2018 Apr 05
1
potential file.copy() or documentation bug when copy.date = TRUE
This is a recent R-devel. file.copy() is not vectorized if multiple
destinations succeed:
cat("foo1\n", file = "foo1")
cat("foo2\n", file = "foo2")
unlink(c("copy1", "copy2"), recursive = TRUE)
file.copy(c("foo1", "foo2"), c("copy1", "copy2"), copy.date = TRUE)
#> Error in
1999 Jul 28
1
Date/time bug in 2.0.5a?
Is this just me????
Just installed 2.0.5a for testing.
Copying files (using explorer) from NT to Samba-2.0.5a (Solaris2.6
*and* Irix6.5)
fails to copy the date/time stamp correctly (1.9.18p7 is fine, from the
same NT system).
24/06/1999 11:59 (on NT) => 25/06/1999 17:14 (Samba)
25/06/1999 17:00 (on NT) => 25/06/1999 17:09 (Samba)
(Yes, that is one 24th and three 25ths of
2019 Sep 09
0
[PATCH] autoconf tweaks for C99 compilers
Strict C99 compilers do not support implicit function declarations or
implicit ints, so something like the patch below is needed.
Thanks,
Florian
diff --git a/configure.ac b/configure.ac
index 4f68e98a..b5c7a582 100644
--- a/configure.ac
+++ b/configure.ac
@@ -173,6 +173,9 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([[
#include <fcntl.h>
#include <sys/types.h>
#include <sys/wait.h>
2014 Feb 04
1
Samba 3.6.3 and NT_STATUS_INVALID_PARAMETER
I see strange errors when samba client tries to shrink file to 0 bytes.
Samba runs on Ubuntu 12.04, client also Ubuntu.
Samba sits on top of POSIX file system (FUSE implementation). I can see
truncate is called correctly and no
error is returned from my implementation. Any ideas?
[2014/02/04 12:34:49.806813, 3] smbd/process.c:1467(switch_message)
switch message SMBtrans2 (pid 28426) conn
2008 Apr 17
4
Bad file modification date/time stamps created from windows clients
I'm running samba server version 3.0.28a on an HP-UX pa-risc machine
with XP-pro windows clients.
When a windows client creates a new file on the samba share the
modification time is not set correctly.
On the HP-UX side date/time stamp shows as:
% ls -l README
-rwxr--r-- 1 e6b564 users 1081 Dec 13 1901 README
The date/time stamp is always "Dec 13 1901" ?
2009 Jan 19
1
pass ruby array to javascript function
Im wondering how to go about passing a ruby array to a javascript
function. I was able to do this the other way around and pass a
javascript array to an action using JSON and convert it back to a ruby
array:
Object.toJSON(<%= array_or_string_for_javascript(@array) %>
then in the action I was able to do:
ruby_array = JSON.parse(params[:array])
But this time I want to pass an array to a
2006 Sep 28
1
ramfs to tmpfs
Hello,
I was using a bunch of cpios in initramfs as a working system, and
wondering why the unused files weren't being paged out to swap.
So I reread ramfs-rootfs-initramfs.txt and now I know.
So I wrote the attached utility. It creates a tmpfs, moves all files
on the initramfs, moves / and executes the real init.
It works, even with hardlinks, but it isn't the correct approach. Have