Ignore:
Timestamp:
May 27, 2009, 9:09:42 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/smbd/close.c

    r228 r232  
    6868        }
    6969
    70         chmod(fsp->fsp_name,0755);
    71         ret = smbrun(fsp->fsp_name,&tmp_fd);
     70        /* Ensure we don't depend on user's PATH. */
     71        p = talloc_asprintf(ctx, "./%s", fsp->fsp_name);
     72        if (!p) {
     73                TALLOC_FREE(ctx);
     74                return;
     75        }
     76
     77        if (chmod(fsp->fsp_name,0755) == -1) {
     78                TALLOC_FREE(ctx);
     79                return;
     80        }
     81        ret = smbrun(p,&tmp_fd);
    7282        DEBUG(3,("Invoking magic command %s gave %d\n",
    73                 fsp->fsp_name,ret));
     83                p,ret));
    7484
    7585        unlink(fsp->fsp_name);
Note: See TracChangeset for help on using the changeset viewer.