search for: getcwd

Displaying 20 results from an estimated 437 matches for "getcwd".

2002 Mar 08
0
[Bug 151] New: 3.0.2p1 and 3.1p1 fail to build.
...%gmake (cd openbsd-compat && gmake) gmake[1]: Entering directory `/home/jamie/compile/6.5/openssh-3.1p1/openbsd-compat' cc -L/usr/local/lib -I/usr/local/include -I. -I.. -I. -I./.. -I/usr/local/openssl/include -L/usr/local/lib -I/usr/local/include -I/usr/local/include -DHAVE_CONFIG_H -c getcwd.c cc-1101 cc: WARNING File = /usr/include/sys/dir.h, Line = 100 "DIR" has already been declared in the current scope. } DIR; ^ cc-1515 cc: WARNING File = getcwd.c, Line = 162 A value of type "struct direct *" cannot be assigned to an entity of type "st...
2010 Mar 31
2
[Bug 1748] New: getcwd being called with invalid argument in servconf.c
https://bugzilla.mindrot.org/show_bug.cgi?id=1748 Summary: getcwd being called with invalid argument in servconf.c Product: Portable OpenSSH Version: 5.4p1 Platform: Sparc OS/Version: Solaris Status: NEW Severity: critical Priority: P2 Component: sshd Assi...
2001 Mar 08
2
OpenSSH 2.5.1p1 won't compile on Solaris 8 x86 (fwd)
...0100 (MET) From: Martijn de Munnik <M.H.M.deMunnik at phys.uu.nl> To: openssh at openssh.com Subject: OpenSSH 2.5.1p1 won't compile on Solaris 8 x86 The error I get when I run make gcc -g -O2 -Wall -I/usr/local/include -I/opt/include -I/opt/include -I. -I.. -I. -I./.. -DHAVE_CONFIG_H -c getcwd.c getcwd.c:39: sys/dir.h: No such file or directory *** Error code 1 make: Fatal error: Command failed for target `getcwd.o' Current working directory /export/home/munnik/openssh-2.5.1p1/openbsd-compat *** Error code 1 make: Fatal error: Command failed for target `openbsd-compat/libopenbsd-comp...
2013 Jun 19
1
Error 400 on SERVER: No such file or directory - getcwd
Hi fully expecting to have done something silly here but am struggling to debug why I am getting the error: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: No such file or directory - getcwd at /etc/puppet/manifests/nodes.pp:2 on node my.domain.net the line in question is getting a custom module which has not changed recently. I was installing http://www.practicalclouds.com/content/guide/pclouds-vcsdeploy-deploy-stuff and having some permissions issues, so I think this may well be to...
2007 Jan 27
0
[PATCH] dash: Fix "pwd -P" breakage due to getcwd(0, 0) usage
The getpwd() function in dash assumed than getcwd(0, 0) will allocate the buffer dynamically using malloc(); however, this glibc extension is not implemented by klibc. Make getpwd() use a temporary buffer and invoke savestr() itself instead of relying on a nonstandard extension. Signed-off-by: Sergey Vlasov <vsu at altlinux.ru> --- Altern...
2010 Apr 02
1
[PATCH] dash: cd fix getpwd
...;herbert at gondor.apana.org.au> --- usr/dash/cd.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/usr/dash/cd.c b/usr/dash/cd.c index 8a23110..ba9a1bc 100644 --- a/usr/dash/cd.c +++ b/usr/dash/cd.c @@ -253,12 +253,13 @@ getpwd() { #ifdef __GLIBC__ char *dir = getcwd(0, 0); + if (dir) + return dir; #else char buf[PATH_MAX]; - char *dir = getcwd(buf, sizeof(buf)); + if(getcwd(buf, sizeof(buf))) + return savestr(buf); #endif - if (dir) - return dir; sh_warnx("getcwd() failed: %s", strerror(errno)); return nullstr; } -- 1.7.0.3
2010 Mar 24
6
[Bug 1739] New: getcwd does not support size zero argument on Solaris
https://bugzilla.mindrot.org/show_bug.cgi?id=1739 Summary: getcwd does not support size zero argument on Solaris Product: Portable OpenSSH Version: 5.4p1 Platform: Sparc OS/Version: Solaris Status: NEW Severity: normal Priority: P2 Component: sshd AssignedTo: unassigned-bugs...
2009 May 30
3
DO NOT REPLY [Bug 6422] New: rsync needlessly aborts when getcwd() fails
https://bugzilla.samba.org/show_bug.cgi?id=6422 Summary: rsync needlessly aborts when getcwd() fails Product: rsync Version: 3.0.6 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P3 Component: core AssignedTo: wayned@samba.org ReportedBy: vapier@gentoo.org QACo...
2014 Jul 24
1
rsync: getcwd(): bad address (14)
Hello, I'm using cwRync to backup my users computeurs. When he closing her Windows session i go (with GPO) a script batch to copy a files/dirs on my rsync server (OpenMediaVault). When i manuel start the script it's ok but when he go to the closed session i've this error rsync: getcwd():Bad address(14) rsync error: errors selecting input/output files, dirs (code3) at util.c (1177) [Receive=3.1.1pre1] This error is present on the Windows 7 64bit computeurs but on winds 7 32bits it's ok. Have you got a idea ? Thank's -- Cordialement, Philippe MALADJIAN. ------------...
2009 Feb 11
1
[PATCH 1/1] COM32 API: Add functions for directory use
From: Gene Cumm <gene.cumm at gmail.com> COM32: Add directory functions getcwd(), opendir(), readdir() and closedir(). This depends on the patch that I just submitted creating the COMBOOT API calls. Signed-off-by: Gene Cumm <gene.cumm at gmail.com> --- The intention is to create the library calls with (hopefully) POSIX compliance such that a small application writte...
2008 Dec 04
0
[PATCH 1/1] COM32: Add directory functions
From: Gene Cumm <gene.cumm at gmail.com> COM32: Add directory functions getcwd(), opendir(), readdir() and closedir(). This depends on the patch that I just submitted creating the COMBOOT API calls. Signed-off-by: Gene Cumm <gene.cumm at gmail.com> --- The intention is to create the library calls with (hopefully) POSIX compliance such that a small application writte...
2016 Aug 08
1
[PATCH] sparsify, v2v: use Common_utils.absolute_path
...ine.ml @@ -142,11 +142,7 @@ read the man page virt-sparsify(1). (* The input disk must be an absolute path, so we can store the name * in the overlay disk. *) - let indisk = - if not (Filename.is_relative indisk) then - indisk - else - Sys.getcwd () // indisk in + let indisk = absolute_path indisk in (* Check the output is not a char special (RHBZ#1056290). *) if is_char_device outdisk then diff --git a/v2v/input_disk.ml b/v2v/input_disk.ml index d56c476..3926602 100644 --- a/v2v/input_disk.ml +++ b/v2v/input_disk.ml @@...
2000 Nov 22
0
possible portability bug in bsd-getcwd.c
I have Red Hat Linux 6.2; kernel 2.2.14; glibc 2.1.3, and downloaded portable OpenSSH 2.3.0. make choked on lines 172, 189, 209, 210 on the "dp->d_namlen" expression. dp is a pointer to an object of dirent type declared in my /usr/src/linux/include/linux/dirent.h header file. The downside is that struct dirent in that file does not have a d_namlen member. Based on the name, and
2014 Dec 08
2
Contributing to Xapian
...b.com/v-hasu/xapian git checkout gsoc2014-evaluation rm xapian-letor/nobootstrap ./bootstrap ./configure --no-documentation make CXXFLAGS='-w' and I get a different set of errors --- ranker.cc: In member function 'std::string Xapian::Ranker::get_cwd()': ranker.cc:80:36: error: 'getcwd' was not declared in this scope make[3]: *** [ranker.lo] Error 1 make[3]: Leaving directory `/home/manugupt1/han/xapian/xapian-letor' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/manugupt1/han/xapian/xapian-letor' make[1]: *** [all] Error 2 make[1]: Leaving dir...
2018 Feb 05
2
geo-replication command rsync returned with 3
On 02/05/2018 01:33 PM, Florian Weimer wrote: > Do you have strace output going further back, at least to the proceeding > getcwd call?? It would be interesting to see which path the kernel > reports, and if it starts with "(unreachable)". I got the strace output now, but it very difficult to read (chdir in a multi-threaded process ?). My current inclination is to blame rsync because it does an unconditional...
2007 Apr 17
2
apache on CentOS 5
Hi, While error recieve while start/stop/restart apache. [root at beyond ]# /etc/init.d/httpd restart shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory Stopping httpd: [ OK ] Starting httpd: shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory Any solution? Thanks
2007 Mar 03
1
My current directory is lost in a bash shell
This one puzzles me a lot: [thba at vink layout]$ nc script/xw_functions.ample NEdit: getcwd() fails: No such file or directory NEdit: getcwd() fails: No such file or directory [thba at vink layout]$ ll script/xw_functions.ample -rw-rw-r-- 1 thba thba 16829 Oct 25 16:59 script/xw_functions.ample [thba at vink layout]$ pwd /home/thba/workarea/colibri/design/ana/layout [thba at vink layout]...
2018 Feb 05
0
geo-replication command rsync returned with 3
..."6741", {st_mode=S_IFDIR|0755, > st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 > 30743 23:34:47 getdents(3, /* 0 entries */, 131072) = 0 > 30743 23:34:47 munmap(0x7fa4feae7000, 135168) = 0 > 30743 23:34:47 close(3)???????????????? = 0 > 30743 23:34:47 write(2, "rsync: getcwd(): No such file or directory > (2)", 46) = 46 > 30743 23:34:47 write(2, "\n", 1)??????? = 1 > 30743 23:34:47 rt_sigaction(SIGUSR1, {SIG_IGN, [], SA_RESTORER, > 0x7fa4fdf404b0}, NULL, 8) = 0 > 30743 23:34:47 rt_sigaction(SIGUSR2, {SIG_IGN, [], SA_RESTORER, > 0x7fa...
2019 Jan 25
0
[klibc:update-dash] dash: Fix some cosmetic differences from upstream dash
...const char *); -#ifdef HAVE_STRTOD -static double getdouble(void); -#endif static int rval; static char **gargv; diff --git a/usr/dash/cd.c b/usr/dash/cd.c index 89c6c30c..2d9d4b52 100644 --- a/usr/dash/cd.c +++ b/usr/dash/cd.c @@ -254,13 +254,16 @@ getpwd() { #ifdef __GLIBC__ char *dir = getcwd(0, 0); + if (dir) return dir; #else char buf[PATH_MAX]; - if(getcwd(buf, sizeof(buf))) + + if (getcwd(buf, sizeof(buf))) return savestr(buf); #endif + sh_warnx("getcwd() failed: %s", strerror(errno)); return nullstr; } diff --git a/usr/dash/trap.c b/usr/dash/trap.c index...
2020 Mar 28
0
[klibc:update-dash] dash: Fix some cosmetic differences from upstream dash
...const char *); -#ifdef HAVE_STRTOD -static double getdouble(void); -#endif static int rval; static char **gargv; diff --git a/usr/dash/cd.c b/usr/dash/cd.c index 89c6c30c..2d9d4b52 100644 --- a/usr/dash/cd.c +++ b/usr/dash/cd.c @@ -254,13 +254,16 @@ getpwd() { #ifdef __GLIBC__ char *dir = getcwd(0, 0); + if (dir) return dir; #else char buf[PATH_MAX]; - if(getcwd(buf, sizeof(buf))) + + if (getcwd(buf, sizeof(buf))) return savestr(buf); #endif + sh_warnx("getcwd() failed: %s", strerror(errno)); return nullstr; } diff --git a/usr/dash/trap.c b/usr/dash/trap.c index...