search for: setmode

Displaying 20 results from an estimated 39 matches for "setmode".

Did you mean: set_mode
2017 Feb 09
1
[PATCH] Fix compile with cygwin
...include/share/compat.h +++ b/include/share/compat.h @@ -98,7 +98,7 @@ #define FLAC__STRNCASECMP strncasecmp #endif -#if defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ || defined __EMX__ +#if defined _MSC_VER || defined __MINGW32__ || defined __EMX__ #include <io.h> /* for _setmode(), chmod() */ #include <fcntl.h> /* for _O_BINARY */ #else diff --git a/src/libFLAC/stream_decoder.c b/src/libFLAC/stream_decoder.c index 2e1fdd5..d3b6e03 100644 --- a/src/libFLAC/stream_decoder.c +++ b/src/libFLAC/stream_decoder.c @@ -1253,9 +1253,6 @@ FILE *get_binary_stdin_(void) */...
2013 Jul 14
1
There is an error in chmod(1)
...ST 2012 root at kg-v2.kg4.no:/usr/obj/usr/src/sys/GENERIC amd64 tingo at kg-v2$ apropos ^sticky sticky(7) - sticky text and append-only directories tingo at kg-v2$ man 1 chmod | grep sticky 1000 (the sticky bit). See chmod(2) and sticky(8). t The sticky bit. setmode(3), symlink(7), chown(8), mount(8), sticky(8) HTH -- Torfinn Ingolfsen <torfinn.ingolfsen at getmail.no>
2001 Apr 02
1
[PATCH]: scp could hang in Cygwin
...============= RCS file: /cvs/openssh_cvs/scp.c,v retrieving revision 1.66 diff -u -p -r1.66 scp.c --- scp.c 2001/03/29 00:43:54 1.66 +++ scp.c 2001/04/02 19:47:14 @@ -291,6 +291,9 @@ main(argc, argv) case 't': /* "to" */ iamremote = 1; tflag = 1; +#ifdef HAVE_CYGWIN + setmode (0, O_BINARY); +#endif break; default: usage(); Index: openbsd-compat/bsd-cygwin_util.c =================================================================== RCS file: /cvs/openssh_cvs/openbsd-compat/bsd-cygwin_util.c,v retrieving revision 1.3 diff -u -p -r1.3 bsd-cygwin_util.c --- openbsd...
2004 Aug 06
1
some portability fixes ...
...; doesn't set binary mode. the result is a dump file that needs to be "uncooked" or else won't play. patches need to be applied to commands.c and source.c to solve the problem. (note that the commands.c patch includes the fix in the previous section). mainly what they do is to setmode() after a valid fd is obtained. ee attachment for commands.c.patch and source.c.patch IV. conclusion i'm supposed to say something nice about icecast, but there are some lousy programming in the source code despite the wide use of icecast nowadays. if i have time i'd try to point them...
2001 Feb 12
1
Little Bug under Win32
...ar.gz > c:\test.tar.gz The problem is that stdout is opend as Text-File so every LF which comes from the SSH-Server (Unix) will be translated to CR LF on a Win32-Machine. The problem can be fixed by adding following line to the beginning of the clientloop-function: setmode(fileno(stdout), O_BINARY); Christian
2002 Jul 02
1
Change atrributes of file on windows side (or DOS)
To whomever may help: I am trying to change the attributes for a file on the linux system, but trying to do it on the windows side or dos prompt. The dos attrib command will not do this, and while researching I found a setmode command, but this gives me an "invalid command" message. Can someone tell me how to modify a file's attributes on a linux system from the windows end as a mapped network drive? Thank You, Kevin Hickman gocadle@neo.rr.com -------------- next part -------------- HTML attachment scrub...
2010 Jul 17
0
mksh on klibc
...'echo foo; ls; echo bar' foo Build.sh check.t eval.c expr.o jobs.c lex.o mksh sh_flags.h syn.c var.c CVS dot.mkshrc eval.o funcs.c jobs.o main.c mksh.1 shf.c syn.o var.o Makefile edit.c exec.c funcs.o lalloc.c main.o setmode.c shf.o test.sh var_spec.h Rebuild.sh edit.o exec.o histrap.c lalloc.o misc.c setmode.o signames.inc tree.c check.pl emacsfn.h expr.c histrap.o lex.c misc.o sh.h strlcpy.c tree.o ^C I?d greatly appreciate if someone could look into this (it used to work...
2001 Apr 07
1
samba on NetBSD - some patches
.../ { - for (i = 0; hlist[i]; i++) /* then display it */ - DEBUG(0, ("%d: %s\n", i, hlist[i]->line)); + for (i = 1; i <= history_length; i++) /* then display it */ + DEBUG(0, ("%d: %s\n", i, history_get(i)->line)); } } # endif @@ -1675,7 +1672,7 @@ {"setmode",cmd_setmode,"filename <setmode string> change modes of file",{COMPL_REMOTE,COMPL_NONE}}, {"help",cmd_help,"[command] give help on a command",{COMPL_NONE,COMPL_NONE}}, {"?",cmd_help,"[command] give help on a command",{COMPL_NONE,COM...
2010 Nov 19
3
File Offsets for SCP (patch)
...= 0; - while ((ch = getopt(argc, argv, "dfl:prtvBCc:i:P:q1246S:o:F:")) != -1) + while ((ch = getopt(argc, argv, "dfl:prtvBCc:i:P:q1246S:o:F:A:Z:")) != -1) switch (ch) { /* User-visible flags. */ case '1': @@ -407,6 +411,16 @@ main(int argc, char **argv) setmode(0, O_BINARY); #endif break; + case 'A': + fd_offset = strtod(optarg, &endp); + if (fd_offset < 0 || *endp != '\0') + usage(); + break; + case 'Z': + fd_inset = strtod(optarg, &endp); + if (fd_inset < 0 || *endp...
2005 May 25
0
[PATCH] Fix fuction prototypes/definitions with void argument
...ile_change_stats(filename, /*read_only=*/false) && 0 == unlink(filename); } -FILE *grabbag__file_get_binary_stdin() +FILE *grabbag__file_get_binary_stdin(void) { /* if something breaks here it is probably due to the presence or * absence of an underscore before the identifiers 'setmode', @@ -125,7 +125,7 @@ FILE *grabbag__file_get_binary_stdin() return stdin; } -FILE *grabbag__file_get_binary_stdout() +FILE *grabbag__file_get_binary_stdout(void) { /* if something breaks here it is probably due to the presence or * absence of an underscore before the identifiers ...
2012 Jan 11
1
user.DOSATTRIB defaults to hidden?
...it was Samba that would have originally set the user.DOSATTRIB values? If so, why would they be set as 'hidden' by default? From a Linux box, I am able to recursively modify the user.DOSATTRIB values using smbclient as follows: cd /mountpoint find * -type f -exec smbclient -N -c 'setmode "{}" -h' //server/sharename \; However, it is not clear to me why they would be set to 'hidden' in the first place. If 'store dos attributes' is set to 'yes' in smb.conf, does the 'create mask' setting affect the user.DOSATTRIB values? One other we...
2002 Jan 25
6
Help with archive bit request
Hello, I am trying to get the archive bit to behave under Samba 2.2.2 on a Linux box (Slackware 8.0) serving NT and Win2K clients. I have "map archive = yes" and "dos filemode = yes". If I have "force create mode = 0100", creating new files sets the archive bit (good) and "attrib +a filename" will turn on the archive bit if it was off (good) but
2013 Apr 02
2
flac 1.3.0pre3 pre-release
Janne Hyv?rinen wrote: > Surprisingly flac_mac had mistakenly gotten extra parameters for safe > string functions requiring further patching. > And here's patches for the changes in git for flactimer. Applied, thanks. > I noticed compat.h patch didn't make it into git. I know it may not be > perfect patch but unistd.h is in two different #ifdef checks. First one >
2013 Apr 07
0
flac 1.3.0pre3 pre-release
...de65 100644 --- a/include/share/compat.h +++ b/include/share/compat.h @@ -93,13 +93,9 @@ #define FLAC__STRNCASECMP strncasecmp #endif -#if defined _MSC_VER || defined __MINGW32__ +#if defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ || defined __EMX__ #include <io.h> /* for _setmode(), chmod() */ #include <fcntl.h> /* for _O_BINARY */ -#endif -#if defined __CYGWIN__ || defined __EMX__ -#include <io.h> /* for setmode(), chmod() */ -#include <fcntl.h> /* for _O_BINARY */ #else #include <unistd.h> /* for chown(), unlink() */ #endif
2001 Jan 31
1
Syntax error....
....c --- ../OggVorbis.clean/vorbis-tools/oggenc/platform.c Thu Feb 1 01:25:36 2001 +++ ./vorbis-tools/oggenc/platform.c Thu Feb 1 01:23:08 2001 @@ -52,7 +58,7 @@ } #endif -#ifdef __WATCOMC__ || __BORLANDC__ +#if defined(__WATCOMC__) || defined(__BORLANDC__) void setbinmode(FILE *f) { setmode(fileno(f), O_BINARY); -- ______________________________________________________________________________ | Brian Havard | "He is not the messiah! | | brianh@kheldar.apana.org.au | He's a very naughty boy!" - Life of Brian | ----------------...
2017 Aug 31
0
[Announce] Samba 4.5.13 Available for Download
...--------------------- This is the latest stable release of the Samba 4.5 release series. Changes since 4.5.12: --------------------- o Jeremy Allison <jra at samba.org> * BUG 12836: s3: smbd: Fix a read after free if a chained SMB1 call goes async. * BUG 12899: 'smbclient setmode' no longer works to clear attribute bits due to dialect upgrade. * BUG 12913: SMBC_setatr() initially uses an SMB1 call before falling back. o Ralph Boehme <slow at samba.org> * BUG 12791: Fix kernel oplock issues with named streams. * BUG 12897: vfs_fruit: Don't use M...
2017 Aug 31
0
[Announce] Samba 4.5.13 Available for Download
...--------------------- This is the latest stable release of the Samba 4.5 release series. Changes since 4.5.12: --------------------- o Jeremy Allison <jra at samba.org> * BUG 12836: s3: smbd: Fix a read after free if a chained SMB1 call goes async. * BUG 12899: 'smbclient setmode' no longer works to clear attribute bits due to dialect upgrade. * BUG 12913: SMBC_setatr() initially uses an SMB1 call before falling back. o Ralph Boehme <slow at samba.org> * BUG 12791: Fix kernel oplock issues with named streams. * BUG 12897: vfs_fruit: Don't use M...
2019 Aug 09
0
[PATCH] Switch to utimensat for newer POSIX versions
...+++ b/src/share/grabbag/file.c @@ -27,7 +27,6 @@ #include <fcntl.h> /* for _O_BINARY */ #else #include <sys/types.h> /* some flavors of BSD (like OS X) require this to get time_t */ -#include <utime.h> /* for utime() */ #endif #if defined __EMX__ #include <io.h> /* for setmode(), O_BINARY */ @@ -53,11 +52,17 @@ void grabbag__file_copy_metadata(const char *srcpath, const char *destpath) { struct flac_stat_s srcstat; - struct utimbuf srctime; if(0 == flac_stat(srcpath, &srcstat)) { +#if _POSIX_C_SOURCE >= 200809L + struct timespec srctime[2] = {}; + srctim...
2008 Jun 04
0
3.0.3pre2 compile warnings under cygwin
...5: warning: unsigned int format, long unsigned int arg (arg 4) match.c:185: warning: unsigned int format, long unsigned int arg (arg 5) match.c:219: warning: unsigned int format, uint32_t arg (arg 5) syscall.c: In function `do_mkstemp': syscall.c:230: warning: implicit declaration of function `setmode' io.c: In function `read_msg_fd': io.c:413: warning: int format, long unsigned int arg (arg 4) token.c: In function `send_deflated_token': token.c:377: warning: int format, int32_t arg (arg 3) token.c:418: warning: int format, int32_t arg (arg 3) token.c: In function `recv_deflated_to...
2004 Sep 28
1
[cygwin] Fwd: Updated: rsync-2.6.2-3
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Here goes the announcement of the 2.6.2-3 package for cygwin (available from cygwin's setup itself). If you wonder what "2.6.2-3" means, it's basically the third "cygwin package" that uses rsync-2.6.2 sources. This third attempt solves both the august security fix and the textmode bug that 2.6.2-2 had. follows the