Displaying 20 results from an estimated 35 matches for "have_fchmod".
2002 Nov 05
2
[PATCH] fix sftp to preserve permissions and uid/gid
...= 0666;
! savemode = 0666;
! }
if ((a->flags & SSH2_FILEXFER_ATTR_PERMISSIONS) &&
(a->perm & S_IFDIR)) {
error("Cannot download a directory: %s", remote_path);
***************
*** 931,939 ****
/* Override umask and utimes if asked */
#ifdef HAVE_FCHMOD
! if (pflag && fchmod(local_fd, mode) == -1)
#else
! if (pflag && chmod(local_path, mode) == -1)
#endif /* HAVE_FCHMOD */
error("Couldn't set mode on \"%s\": %s", local_path,
strerror(errno));
--- 984,992 ----
/* Override umask...
2003 Feb 12
4
Pb w/ >2GB files on AIX (4.3.3/5.1)
...h do
not have a 64bits version into the AIX libc.
A very simple workaround to the big files writing rsync pb. is to not
use this routine that create files w/ mkstemp() by modifying the
"syscall.c" source file at line 154 as following :
#if defined(HAVE_SECURE_MKSTEMP) && defined(HAVE_FCHMOD)
become
#if defined(HAVE_SECURE_MKSTEMP) && defined(HAVE_FCHMOD) && !
defined(_AIX)
Hope this will help poor AIX users ;-)
Dean,
a nostalgic Digital Unix veteran.
Digital/Tru64 Unix don't care big files !
2003 May 14
1
Bug with Large Files on AIX
....6/syscall.c
*** rsync-2.5.6.orig/syscall.c Sun Jan 26 21:09:02 2003
--- rsync-2.5.6/syscall.c Wed May 14 13:55:15 2003
***************
*** 151,157 ****
if (dry_run) return -1;
if (read_only) {errno = EROFS; return -1;}
! #if defined(HAVE_SECURE_MKSTEMP) && defined(HAVE_FCHMOD)
{
int fd = mkstemp(template);
if (fd == -1) return -1;
--- 151,157 ----
if (dry_run) return -1;
if (read_only) {errno = EROFS; return -1;}
! #if defined(HAVE_SECURE_MKSTEMP) && defined(HAVE_FCHMOD) && !defined(_AIX)...
2001 May 12
4
Erase the source file open; specify a tempfile name option
...tomicio(write, remout, "", 1);
@@ -861,7 +885,7 @@
}
#if 0
if (ftruncate(ofd, size)) {
- run_err("%s: truncate: %s", np, strerror(errno));
+ run_err("%s: truncate: %s", dest, strerror(errno));
wrerr = DISPLAYED;
}
#endif
@@ -870,19 +894,19 @@
#ifdef HAVE_FCHMOD
if (fchmod(ofd, omode))
#else /* HAVE_FCHMOD */
- if (chmod(np, omode))
+ if (chmod(dest, omode))
#endif /* HAVE_FCHMOD */
run_err("%s: set mode: %s",
- np, strerror(errno));
+ dest, strerror(errno));
} else {
if (!exists && omode != mode)...
2004 Aug 13
1
[patch] rsync large file support on AIX and HPUX
...Olaf
*** rsync-2.6.2/syscall.c.ORG_SC Fri Aug 13 13:17:27 2004
--- rsync-2.6.2/syscall.c Fri Aug 13 13:19:29 2004
***************
*** 152,158 ****
RETURN_ERROR_IF(dry_run, 0);
RETURN_ERROR_IF(read_only, EROFS);
! #if defined(HAVE_SECURE_MKSTEMP) && defined(HAVE_FCHMOD)
{
int fd = mkstemp(template);
if (fd == -1)
--- 152,160 ----
RETURN_ERROR_IF(dry_run, 0);
RETURN_ERROR_IF(read_only, EROFS);
!
! /* AIX and hpux mkstemp is broken for LARGE_FILES */
! #if defined(HAVE_SECURE_MKSTEMP) && de...
2007 Oct 20
2
DO NOT REPLY [Bug 5027] New: Perms in do_mkstemp are not always valid
...ile is changed to a value which
would deny access to that process. One situation where this could occur is
on a stateless file system. This behavior will not occur in a conforming
environment.
I guess I have a non-conforming environment (I'm talking to a unfs3 server).
If I remove HAVE_FCHMOD, it still doesn't work, because the call to open()
includes the read-only permissions as well (a case I don't really see
referenced in SUSv3 right off).
The following patch makes sure that the user always has write permission to the
temp file:
diff -urN rsync-2.6.9-dist/syscall.c rsync-2....
2001 Feb 21
1
sftp-server and chown
...status = errno_to_portable(errno);
}
+ #endif
send_status(id, status);
xfree(name);
}
***************
*** 591,600 ****
status = SSH2_FX_FAILURE;
} else {
if (a->flags & SSH2_FILEXFER_ATTR_PERMISSIONS) {
#ifdef HAVE_FCHMOD
! ret = fchmod(fd, a->perm & 0777);
#else
! ret = chmod(name, a->perm & 0777);
#endif
if (ret == -1)
status = errno_to_portable(errno);
--- 615,629 ----
status = SSH...
2002 Jan 03
3
[PATCH] Improving sftp client performance
...error("Couldn't write to \"%s\": %s", local_path,
+ strerror(write_errno));
+ status = -1;
+ do_close(fd_in, fd_out, handle, handle_len);
+ } else {
+ status = do_close(fd_in, fd_out, handle, handle_len);
+
+ /* Override umask and utimes if asked */
#ifdef HAVE_FCHMOD
- if (pflag && fchmod(local_fd, mode) == -1)
+ if (pflag && fchmod(local_fd, mode) == -1)
#else
- if (pflag && chmod(local_path, mode) == -1)
+ if (pflag && chmod(local_path, mode) == -1)
#endif /* HAVE_FCHMOD */
- error("Couldn't set mode on \"%s...
2001 Feb 16
7
OpenSSH 2.5.0p1
Known issues:
1) Linux 'sleep 20' -- Unfixable before 2.5.0 (known work around)
2) HP/UX signal issue -- Patched and HP/UX 11 works in v2
3) SCO 2/ Native Compiler -- Unfixable before 2.5.0 (known work around)
4) NeXTStep -- Resynced, MAX_GROUPS vs NGROUPS unresolved (not major)
5) DG/UX regcomp/regexec -- Fixed.
6) Cray signal issues -- ???
7) Solaris '$PATH' issue -- ??
2002 Jan 06
3
sftp/scp performance testing
Folks, I've noticed poor performance using sftp. If anyone has any
advice on how to improve performance, I'd like to hear it. Test simply
involved transferring a single 143MB MP3 file using defaults for all the
program configs. The opensshd 3.0.2p1 server is used in all tests.
Software:
openssh suite 3.0.2p1
psftp (putty sftp client) latest dev snapshot
pscp (putty scp client) latest
2004 Apr 11
1
fchmod in do_mkstemp? (patch included)
...mp but forces permissions */
-int do_mkstemp(char *template, mode_t perms)
+/* like mkstemp but force 0600 permissions */
+int do_mkstemp(char *template)
{
RETURN_ERROR_IF(dry_run, 0);
RETURN_ERROR_IF(read_only, EROFS);
@@ -155,21 +155,12 @@
#if defined(HAVE_SECURE_MKSTEMP) && defined(HAVE_FCHMOD)
{
int fd = mkstemp(template);
- if (fd == -1)
- return -1;
- if (fchmod(fd, perms) != 0 && preserve_perms) {
- int errno_save = errno;
- close(fd);
- unlink(template);
- errno = errno_save;
- return -1;
- }
return fd;
}
#else
if (!mktemp(template))
return -1;...
2002 Mar 15
4
PATCH: sftp-server logging.
...(fd < 0 || name == NULL) {
status = SSH2_FX_FAILURE;
} else {
if (a->flags & SSH2_FILEXFER_ATTR_SIZE) {
ret = ftruncate(fd, a->size);
! if (ret == -1)
status = errno_to_portable(errno);
}
if (a->flags & SSH2_FILEXFER_ATTR_PERMISSIONS) {
#ifdef HAVE_FCHMOD
--- 725,744 ----
name = handle_to_name(handle);
if (fd < 0 || name == NULL) {
status = SSH2_FX_FAILURE;
+ #ifdef SFTP_LOGGING
+ log("(%d/%d/%s) Set file/dir stats failed - could not get name from handle: %d.", ppid, cuid, CUNAME, handle);
+ #endif
} else {
if (a->...
2003 Dec 25
1
How to tell if option "with-acl-support" is compiledin Solaris smbd?
...HAVE_CHROOT
HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS
HAVE_CONNECT
HAVE_CREAT64
HAVE_CRYPT
HAVE_CUPS
HAVE_DIRENT_D_OFF
HAVE_DLCLOSE
HAVE_DLERROR
HAVE_DLOPEN
HAVE_DLSYM
HAVE_DUP2
HAVE_ENDNETGRENT
HAVE_ERRNO_DECL
HAVE_EXECL
HAVE_EXPLICIT_LARGEFILE_SUPPORT
HAVE_FCHMOD
HAVE_FCHOWN
HAVE_FCNTL_LOCK
HAVE_FCVT
HAVE_FOPEN64
HAVE_FSEEKO64
HAVE_FSTAT
HAVE_FSTAT64
HAVE_FSYNC
HAVE_FTELLO64
HAVE_FTRUNCATE
HAVE_FTRUNCATE64
HAVE_FTRUNCATE_EXTEND
HAVE_FUNCTION_MACRO
HAVE_GETCWD
HAVE_GETDENTS
HAVE_GETGRENT
HAVE_GETGRNAM
HAV...
2005 Nov 09
0
Samba 3.0.20b / AIX 5.3 / VFS Modules
...HAVE_CHROOT
HAVE_CLOSEDIR64
HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS
HAVE_CONNECT
HAVE_CREAT64
HAVE_CRYPT
HAVE_DEV64_T HAVE_DLCLOSE
HAVE_DLERROR
HAVE_DLOPEN
HAVE_DLSYM
HAVE_DUP2
HAVE_ENDMNTENT
HAVE_ENDNETGRENT
HAVE_ERRNO_DECL
HAVE_EXECL
HAVE_EXPLICIT_LARGEFILE_SUPPORT
HAVE_FCHMOD
HAVE_FCHOWN
HAVE_FCNTL_LOCK
HAVE_FCVT
HAVE_FOPEN64
HAVE_FSEEKO64
HAVE_FSTAT
HAVE_FSTAT64
HAVE_FSYNC
HAVE_FTELLO64
HAVE_FTRUNCATE
HAVE_FTRUNCATE64
HAVE_FTRUNCATE_EXTEND
HAVE_FUNCTION_MACRO
HAVE_GETCWD
HAVE_GETDIRENTRIES
HAVE_GETGRENT
HAVE_GETGRNAM
HAVE_GETMNTENT...
2007 Sep 24
2
Where is the tdbsam password database file?
...F
HAVE_DECL_VASPRINTF
HAVE_DECL_VSNPRINTF
HAVE_DEVICE_MAJOR_FN
HAVE_DEVICE_MINOR_FN
HAVE_DIRENT_D_OFF
HAVE_DLCLOSE
HAVE_DLERROR
HAVE_DLOPEN
HAVE_DLSYM
HAVE_DUP2
HAVE_ENDMNTENT
HAVE_ENDNETGRENT
HAVE_ERRNO_DECL
HAVE_EXECL
HAVE_EXPLICIT_LARGEFILE_SUPPORT
HAVE_FCHMOD
HAVE_FCHOWN
HAVE_FCNTL_LOCK
HAVE_FCVT
HAVE_FGETXATTR
HAVE_FLISTXATTR
HAVE_FOPEN64
HAVE_FREMOVEXATTR
HAVE_FSEEKO64
HAVE_FSETXATTR
HAVE_FSID_INT
HAVE_FSTAT
HAVE_FSTAT64
HAVE_FSYNC
HAVE_FTELLO64
HAVE_FTRUNCATE
HAVE_FTRUNCATE64
HAVE_FTRUNCATE_EXTEND...
2005 Oct 19
1
samba with ADS. winbindd ignore for user authentication
...HAVE_COPY_AUTHENTICATOR
HAVE_CRYPT
HAVE_DEVICE_MAJOR_FN
HAVE_DEVICE_MINOR_FN
HAVE_DLCLOSE
HAVE_DLERROR
HAVE_DLOPEN
HAVE_DLSYM
HAVE_DUP2
HAVE_ENCTYPE_ARCFOUR_HMAC_MD5
HAVE_ENDNETGRENT
HAVE_ERRNO_DECL
HAVE_EXECL
HAVE_EXPLICIT_LARGEFILE_SUPPORT
HAVE_FCHMOD
HAVE_FCHOWN
HAVE_FCNTL_LOCK
HAVE_FSTAT
HAVE_FSYNC
HAVE_FTRUNCATE
HAVE_FTRUNCATE_EXTEND
HAVE_FUNCTION_MACRO
HAVE_GETCWD
HAVE_GETDENTS
HAVE_GETDIRENTRIES
HAVE_GETGRENT
HAVE_GETGRNAM
HAVE_GETGROUPLIST
HAVE_GETNETGRENT
HAVE_GETRLIMIT
HAVE_...
2005 May 18
1
Samba Comple Problem on Solaris 2.8
...OUT_FNS
HAVE_CONNECT
HAVE_COPY_AUTHENTICATOR
HAVE_CREAT64
HAVE_CRYPT
HAVE_DIRENT_D_OFF
HAVE_DLCLOSE
HAVE_DLERROR
HAVE_DLOPEN
HAVE_DLSYM
HAVE_DUP2
HAVE_ENCTYPE_ARCFOUR_HMAC_MD5
HAVE_ENDNETGRENT
HAVE_ERRNO_DECL
HAVE_EXECL
HAVE_EXPLICIT_LARGEFILE_SUPPORT
HAVE_FCHMOD
HAVE_FCHOWN
HAVE_FCNTL_LOCK
HAVE_FCVT
HAVE_FOPEN64
HAVE_FSEEKO64
HAVE_FSTAT
HAVE_FSTAT64
HAVE_FSYNC
HAVE_FTELLO64
HAVE_FTRUNCATE
HAVE_FTRUNCATE64
HAVE_FTRUNCATE_EXTEND
HAVE_FUNCTION_MACRO
HAVE_GETCWD
HAVE_GETDENTS
HAVE_GETGRENT
HAVE_GETGRNAM
HAV...
2005 May 07
0
force group broken in 3.0.14?
...CT
HAVE_CREAT64
HAVE_CRYPT
HAVE_CUPS
HAVE_DES_SET_KEY
HAVE_DEVICE_MAJOR_FN
HAVE_DEVICE_MINOR_FN
HAVE_DIRENT_D_OFF
HAVE_DLCLOSE
HAVE_DLERROR
HAVE_DLOPEN
HAVE_DLSYM
HAVE_DUP2
HAVE_ENDMNTENT
HAVE_ENDNETGRENT
HAVE_ERRNO_DECL
HAVE_EXECL
HAVE_EXPLICIT_LARGEFILE_SUPPORT
HAVE_FCHMOD
HAVE_FCHOWN
HAVE_FCNTL_LOCK
HAVE_FCVT
HAVE_FGETXATTR
HAVE_FLISTXATTR
HAVE_FOPEN64
HAVE_FREMOVEXATTR
HAVE_FSEEKO64
HAVE_FSETXATTR
HAVE_FSTAT
HAVE_FSTAT64
HAVE_FSYNC
HAVE_FTELLO64
HAVE_FTRUNCATE
HAVE_FTRUNCATE64
HAVE_FTRUNCATE_EXTEND
HAVE_FUNCTION_MACRO
HAVE_GETCWD...
2017 Jun 08
0
2nd try: Lots of RPC-related compile errors (conflicting types, too many arguments, ...) trying to update Samba from 3.5 to 4.6
...F
HAVE_DECL_VSNPRINTF
HAVE_DGETTEXT
HAVE_DIRENT_D_OFF
HAVE_DIRFD
HAVE_DIRFD_DECL
HAVE_DLCLOSE
HAVE_DLERROR
HAVE_DLOPEN
HAVE_DLSYM
HAVE_DUP2
HAVE_ENDMNTENT
HAVE_ENDNETGRENT
HAVE_ENVIRON_DECL
HAVE_EPOLL
HAVE_EPOLL_CREATE
HAVE_ERRNO_DECL
HAVE_EXECL
HAVE_FCHMOD
HAVE_FCHOWN
HAVE_FCVT
HAVE_FDATASYNC
HAVE_FGETXATTR
HAVE_FLISTXATTR
HAVE_FOPEN64
HAVE_FREEADDRINFO
HAVE_FREEIFADDRS
HAVE_FREMOVEXATTR
HAVE_FRSIZE
HAVE_FSEEKO64
HAVE_FSETXATTR
HAVE_FSID_INT
HAVE_FSTAT64
HAVE_FSYNC
HAVE_FTELLO64
HAVE_FTRUNCATE
HAV...
2003 Feb 11
1
Problems configuring OpenSSH 3.5p1 on Sol 5.8
..._TIME_H 1
#define HAVE_UTIME_H 1
#define HAVE_UTMP_H 1
#define HAVE_UTMPX_H 1
#define HAVE_LIBNSL 1
#define HAVE_LIBSOCKET 1
#define HAVE_LIBZ 1
#define HAVE_UPDWTMP 1
#define HAVE_STRFTIME 1
#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
#define LIBWRAP 1
#define HAVE_BCOPY 1
#define HAVE_CLOCK 1
#define HAVE_FCHMOD 1
#define HAVE_FCHOWN 1
#define HAVE_FREEADDRINFO 1
#define HAVE_GAI_STRERROR 1
#define HAVE_GETADDRINFO 1
#define HAVE_GETCWD 1
#define HAVE_GETNAMEINFO 1
#define HAVE_GETOPT 1
#define HAVE_GETRLIMIT 1
#define HAVE_GETRUSAGE 1
#define HAVE_GLOB 1
#define HAVE_INET_NTOA 1
#define HAVE_INET_NTOP 1
#...