Displaying 18 results from an estimated 18 matches for "s_iwrite".
Did you mean:
is_write
2013 Jun 01
3
[Bug 2113] New: S_IWRITE is considered obsolete and should be replaced with S_IWUSR.
https://bugzilla.mindrot.org/show_bug.cgi?id=2113
Bug ID: 2113
Summary: S_IWRITE is considered obsolete and should be replaced
with S_IWUSR.
Product: Portable OpenSSH
Version: 6.2p1
Hardware: Other
OS: Linux
Status: NEW
Severity: minor
Priority: P5
Component: Build syste...
2002 Jun 27
2
Samba 2.2.5 Recycle Bin file permissions
Using Samba 2.2.5 on FreeBSD 4.5.
We have a file share used by several people working on common projects.
The share is set up with
force group = cad
create mask = 0774
force create mode = 0774
directory mask = 0775
force directory mode = 0775
so that everyone can create/modify any file in the share.
The new VFS recycle bin, however, sets the file
2002 Nov 05
2
[PATCH] fix sftp to preserve permissions and uid/gid
...rno;
u_int64_t offset, size;
! u_int handle_len, mode, type, id, buflen, savemode;
struct request {
u_int id;
u_int len;
***************
*** 763,773 ****
return(-1);
/* XXX: should we preserve set[ug]id? */
! if (a->flags & SSH2_FILEXFER_ATTR_PERMISSIONS)
mode = S_IWRITE | (a->perm & 0777);
! else
mode = 0666;
!
if ((a->flags & SSH2_FILEXFER_ATTR_PERMISSIONS) &&
(a->perm & S_IFDIR)) {
error("Cannot download a directory: %s", remote_path);
--- 813,826 ----
return(-1);
/* XXX: should we preserve set...
2013 Jan 12
1
[Bug 2021] sftp resume support (using size and offset)
https://bugzilla.mindrot.org/show_bug.cgi?id=2021
--- Comment #10 from Loganaden Velvindron <loganaden at gmail.com> ---
ping :-) ?
--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
2003 Oct 30
2
sftp client reget reput
...ar *local_path,
+ int pflag, int rflag)
+#else
do_download(struct sftp_conn *conn, char *remote_path, char *local_path,
int pflag)
+#endif
{
Attrib junk, *a;
Buffer msg;
@@ -798,8 +803,17 @@
return(-1);
}
- local_fd = open(local_path, O_WRONLY | O_CREAT | O_TRUNC,
- mode | S_IWRITE);
+#ifdef REGET
+ if (rflag)
+ local_fd = open(local_path, O_WRONLY, mode | S_IWRITE);
+ else {
+ local_fd = open(local_path, O_WRONLY | O_CREAT | O_TRUNC,
+ mode | S_IWRITE);
+ }
+#else
+ local_fd = open(local_path, O_WRONLY | O_CREAT | O_TRUNC,
+ mode | S_IWRITE);
+#endif
if (...
2013 Jun 19
9
[Bug 2021] sftp resume support (using size and offset)
https://bugzilla.mindrot.org/show_bug.cgi?id=2021
Loganaden Velvindron <loganaden at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #2199|0 |1
is obsolete| |
--- Comment #12 from Loganaden Velvindron
2001 Mar 17
1
ogg123 doesn't destroy shm segment
...t;
#include <sys/time.h>
#include <unistd.h> /* for fork and pipe*/
#include <fcntl.h>
@@ -76,7 +75,7 @@
/* Get the shared memory segment. */
int shmid = shmget (IPC_PRIVATE,
sizeof(buf_t) + sizeof (chunk_t) * (size - 1),
- IPC_CREAT|S_IREAD|S_IWRITE);
+ IPC_CREAT|SHM_R|SHM_W);
if (shmid == -1)
{
@@ -92,7 +91,10 @@
perror ("shmat");
exit (1);
}
-
+
+ /* Remove segment after last process detaches it or terminates. */
+ shmctl(shmid, IPC_RMID, 0);
+
buffer_init (buf, size);
/* Create a pipe...
2000 Aug 18
0
[PATCH] Support symlinks in scp of openssh 2
...sink(argc, argv)
np = targ;
curfile = cp;
- exists = stat(np, &stb) == 0;
+ exists = (buf[0] == 'L' ? lstat : stat)(np, &stb) == 0;
if (buf[0] == 'D') {
int mod_flag = pflag;
@@ -845,9 +869,14 @@ sink(argc, argv)
continue;
}
- omode = mode;
- mode |= S_IWRITE;
- if ((ofd = open(np, O_WRONLY | O_CREAT | O_TRUNC, mode)) < 0) {
-bad: run_err("%s: %s", np, strerror(errno));
- continue;
+ if (buf[0] == 'L')
+ ofd = omode = -1;
+ else {
+ omode = mode;
+ mode |= S_IWRITE;
+ if ((ofd = open(np, O_WRONLY | O_CREAT | O_TRUNC,...
2001 May 17
6
scp: Problem when source and destination are identical
If the source and destination file are identical, the receiving scp
truncates the file. On the sending end, read() returns 0, and garbage
is sent instead of actual data, and the receiving end puts it into the
file, which at least confuses the users.
--
Florian Weimer Florian.Weimer at RUS.Uni-Stuttgart.DE
University of Stuttgart http://cert.uni-stuttgart.de/
2010 Oct 08
3
[Announce] Samba 3.5.6 Available for Download
...as shared.
* BUG 7531: Fix the charset_pull routine.
* BUG 7635: Fix 'smbclient -M'.
* BUG 7656: Fix scalability problem with hundreds of printers.
* BUG 7684: Fix fd leak in libwbclient.so.
* BUG 7688: Fix crash bug in rpcclient.
* BUG 7470: Standardize S_IREAD and S_IWRITE.
* BUG 7715: Fix file corruption when setting Samba "write wache wize".
o Jim McDonough <jmcd at samba.org>
* BUG 7280: Fix auto printers with registry config.
o Andreas Schneider <asn at samba.org>
* BUG 7538: Fix GUID_from_data_blob() with length of 32....
2010 Oct 08
3
[Announce] Samba 3.5.6 Available for Download
...as shared.
* BUG 7531: Fix the charset_pull routine.
* BUG 7635: Fix 'smbclient -M'.
* BUG 7656: Fix scalability problem with hundreds of printers.
* BUG 7684: Fix fd leak in libwbclient.so.
* BUG 7688: Fix crash bug in rpcclient.
* BUG 7470: Standardize S_IREAD and S_IWRITE.
* BUG 7715: Fix file corruption when setting Samba "write wache wize".
o Jim McDonough <jmcd at samba.org>
* BUG 7280: Fix auto printers with registry config.
o Andreas Schneider <asn at samba.org>
* BUG 7538: Fix GUID_from_data_blob() with length of 32....
2002 Feb 07
1
Latest version of the batch mode cleanup patch
...ist file for writing; create it if it doesn't exist */
- fdb =
- do_open(rsync_flist_file, O_WRONLY | O_CREAT | O_TRUNC,
+ /*
+ * Open batch flist file for writing;
+ * create it if it doesn't exist
+ */
+ fdb = do_open(filename, O_WRONLY | O_CREAT | O_TRUNC,
S_IREAD | S_IWRITE);
if (fdb == -1) {
rprintf(FERROR, "Batch file %s open error: %s\n",
- rsync_flist_file, strerror(errno));
+ filename, strerror(errno));
close(fdb);
exit_cleanup(1);
}
@@ -67,12 +50,11 @@
if (write(fdb, buff, bytes_to_write) == -1) {
rprintf(FERROR, "Ba...
2013 Jul 25
11
Call for testing: OpenSSH-6.3
...se lastlog on Android; bz#2111
* Fall back to using openssl's DES_crypt function on platorms that don't
have a native crypt() function; bz#2112
* Test for fd_mask, howmany and NFDBITS rather than trying to enumerate
the plaforms that don't have them. bz#2085
* Replace S_IWRITE, which isn't standardized, with S_IWUSR, which is.
bz#2085
* Add a null implementation of endgrent for platforms that don't have
it (eg Android) bz#2087
* Support platforms, such as Android, that lack struct passwd.pw_gecos.
bz#2086
Reporting Bugs:
===============
- P...
2013 Sep 13
0
Announce: OpenSSH 6.3 released
...se lastlog on Android; bz#2111
* Fall back to using openssl's DES_crypt function on platorms that don't
have a native crypt() function; bz#2112
* Test for fd_mask, howmany and NFDBITS rather than trying to enumerate
the plaforms that don't have them. bz#2085
* Replace S_IWRITE, which isn't standardized, with S_IWUSR, which is.
bz#2085
* Add a null implementation of endgrent for platforms that don't have
it (eg Android) bz#2087
* Support platforms, such as Android, that lack struct passwd.pw_gecos.
bz#2086
Checksums:
==========
- SHA1 (open...
2013 Sep 13
0
Announce: OpenSSH 6.3 released
...se lastlog on Android; bz#2111
* Fall back to using openssl's DES_crypt function on platorms that don't
have a native crypt() function; bz#2112
* Test for fd_mask, howmany and NFDBITS rather than trying to enumerate
the plaforms that don't have them. bz#2085
* Replace S_IWRITE, which isn't standardized, with S_IWUSR, which is.
bz#2085
* Add a null implementation of endgrent for platforms that don't have
it (eg Android) bz#2087
* Support platforms, such as Android, that lack struct passwd.pw_gecos.
bz#2086
Checksums:
==========
- SHA1 (open...
2001 May 12
4
Erase the source file open; specify a tempfile name option
...*vect[1], buf[2048];
struct timeval tv[2];
#define atime tv[0]
@@ -770,6 +793,7 @@
np = namebuf;
} else
np = targ;
+ dest = *tmpfn? tmpfn : np;
curfile = cp;
exists = stat(np, &stb) == 0;
if (buf[0] == 'D') {
@@ -804,8 +828,8 @@
}
omode = mode;
mode |= S_IWRITE;
- if ((ofd = open(np, O_WRONLY | O_CREAT | O_TRUNC, mode)) < 0) {
-bad: run_err("%s: %s", np, strerror(errno));
+ if ((ofd = open(dest, O_WRONLY | O_CREAT | O_TRUNC, mode)) < 0) {
+bad: run_err("%s: %s", dest, strerror(errno));
continue;
}
(void) atomicio(...
2002 Jul 13
0
[PATCH]: scp program improved
...control record");
}
+
+ /* Set resume mode on if requested */
+ if (*cp == 'R')
+ resume = 1;
+
mode = 0;
for (++cp; cp < buf + 5; cp++) {
if (*cp < '0' || *cp > '7')
@@ -812,11 +920,31 @@
}
omode = mode;
mode |= S_IWRITE;
- if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) {
+ i = statbytes = 0;
+ if (resume != 1) {
+ if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) {
bad: run_err("%s: %s", np, strerror(errno));
- continue;
+ continue;
+ }
+ /* Send response...
2013 Mar 07
135
[Bug 2076] New: Bugs intended to be fixed in 6.3
https://bugzilla.mindrot.org/show_bug.cgi?id=2076
Bug ID: 2076
Summary: Bugs intended to be fixed in 6.3
Classification: Unclassified
Product: Portable OpenSSH
Version: -current
Hardware: Other
OS: All
Status: NEW
Severity: enhancement
Priority: P5
Component: Miscellaneous