Fixed bug in file timestamp handling. Bumped version to 20070629. Bumped release level to beta. - susmb - mounting of SMB/CIFS shares via FUSE
 (HTM) git clone git://git.codemadness.org/susmb
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 2b068d2bda66aacf152140376ce49626a5516c8e
 (DIR) parent 31588ef340d16f7780956fc317c35793c9c86b0c
 (HTM) Author: geoff <devnull@localhost>
       Date:   Fri, 29 Jun 2007 16:52:05 +0000
       
       Fixed bug in file timestamp handling.
       Bumped version to 20070629.
       Bumped release level to beta.
       
       Diffstat:
         M doc/README                          |       8 ++++++++
         M usmb_file.c                         |      12 +++++++-----
         M version.h                           |       4 ++--
       
       3 files changed, 17 insertions(+), 7 deletions(-)
       ---
 (DIR) diff --git a/doc/README b/doc/README
       @@ -1,6 +1,14 @@
        usmb - Unprivileged mounting of SMB/CIFS shares via FUSE
        ========================================================
        
       +Acknowledgement
       +---------------
       +
       +Jonathan Schultz provided a patch against a previous version, included in
       +this version, for incorrect timestamps in the usmb_file.c:
       +http://legacy.imatix.com/patches/usmb/.
       +
       +
        Introduction
        ------------
        
 (DIR) diff --git a/usmb_file.c b/usmb_file.c
       @@ -201,20 +201,22 @@ int usmb_utime (const char *filename, struct utimbuf *utb)
          if (NULL == url)
            return -ENOMEM;
        
       -  struct timeval tv = {
       -    .tv_sec = utb->modtime,
       -    .tv_usec = 0
       +  struct timeval tv[2] = {
       +    { .tv_sec = utb->actime,
       +      .tv_usec = 0 },
       +    { .tv_sec = utb->modtime,
       +      .tv_usec = 0 }
          };
        
          DEBUG (fprintf (stderr, "utime (%s)\n", url));
       -  int ret = (ctx->utimes (ctx, url, &tv) < 0) ? -errno : 0;
       +  int ret = (ctx->utimes (ctx, url, tv) < 0) ? -errno : 0;
          free (url);
          return ret;
        }
        
        
        #if 0
       -Samab 3.0.34 defines utimes as taking struct timevals rather than timespecs.
       +Samab 3.0.24 defines utimes as taking struct timevals rather than timespecs.
        int usmb_utimes (const char *filename, const struct timespec ts[2])
        {
          char *url = make_url (filename);
 (DIR) diff --git a/version.h b/version.h
       @@ -21,10 +21,10 @@
        
          #include <stdio.h>
        
       -  #define USMB_VERSION 0x20070423
       +  #define USMB_VERSION 0x20070629
        
          // a - alpha, b - beta, p - pre-release, s - stable
       -  #define USMB_VERSION_STATUS 'a'
       +  #define USMB_VERSION_STATUS 'b'
        
          void show_about (FILE *fp);
          void show_version (FILE *fp);