search for: dirnam

Displaying 20 results from an estimated 1354 matches for "dirnam".

Did you mean: dirname
2001 Oct 24
1
Borken dirname on Solaris 2.5.1
Discovered this post an upgrade to 2.9.9p2, Solaris 2.5.1 dirname is busted for paths like "/usr", returning "" rather than "/". Index: acconfig.h =================================================================== RCS file: /cvsroot/upstream/openssh/acconfig.h,v retrieving revision 1.1.1.3 diff -u -r1.1.1.3 acconfig.h --- acconfig...
2023 Feb 23
1
Undocumented change of dirname("C:/") on R-devel on Windows
Hi, I found dirname() behaves differently on R-devel on Windows. Since I'm not sure which behavior is right, let me ask here before filing this to R's Bigzilla. On R 4.2.2., we get > dirname("C:/") [1] "C:/" However, on R-devel (r83888), we get > dirname("C:/&quo...
2020 Jun 29
1
`basename` and `dirname` change the encoding to "UTF-8"
On 29/06/2020 10:39 a.m., Johannes Rauh wrote: > Dear R Developers, > > I noticed that `basename` and `dirname` always return "UTF-8" on Windows (tested with R-4.0.0 and R-3.6.3): > >> p <- "F??/B?r" >> Encoding(p) > [1] "latin1" >> Encoding(dirname(p)) > [1] "UTF-8" >> Encoding(basename(p)) > [1] "UTF-8" > > I...
2023 Feb 23
1
Undocumented change of dirname("C:/") on R-devel on Windows
On 2/23/23 03:27, Hiroaki Yutani wrote: > Hi, > > I found dirname() behaves differently on R-devel on Windows. Since I'm not > sure which behavior is right, let me ask here before filing this to R's > Bigzilla. > > On R 4.2.2., we get > > > dirname("C:/") > [1] "C:/" > > However, on R-devel (r83...
2023 Feb 23
1
Undocumented change of dirname("C:/") on R-devel on Windows
...2.2) behavior. [1]: https://learn.microsoft.com/en-us/dotnet/standard/io/file-path-formats#apply-the-current-directory Best, Yutani 2023?2?23?(?) 17:15 Tomas Kalibera <tomas.kalibera at gmail.com>: > > On 2/23/23 03:27, Hiroaki Yutani wrote: > > Hi, > > > > I found dirname() behaves differently on R-devel on Windows. Since I'm > not > > sure which behavior is right, let me ask here before filing this to R's > > Bigzilla. > > > > On R 4.2.2., we get > > > > > dirname("C:/") > > [1] "C:/&...
2009 Nov 22
0
file_path_as_absolute duplicates "/" (PR#14078)
Full_Name: Jens Oehlschl?gel Version: 2.10.0 OS: Windows XP Submission from: (NULL) (85.181.157.36) file_path_as_absolute duplicates "/" for files in the root path, which goes back to the fact that file.path(dirname(x), basename(x)) currently is not guaranteed to restore x > x <- "d:/x.RDAta" > file_path_as_absolute(x) [1] "d://x.RData" > file.path(dirname(x), basename(x)) [1] "d://x.RData" > dirname(x) [1] "d:/" > x <- "/" > file.p...
2023 Feb 24
1
Undocumented change of dirname("C:/") on R-devel on Windows
...m/en-us/dotnet/standard/io/file-path-formats#apply-the-current-directory > > Best, > Yutani > > 2023?2?23?(?) 17:15 Tomas Kalibera <tomas.kalibera at gmail.com>: > >> >> On 2/23/23 03:27, Hiroaki Yutani wrote: >> > Hi, >> > >> > I found dirname() behaves differently on R-devel on Windows. Since I'm >> not >> > sure which behavior is right, let me ask here before filing this to R's >> > Bigzilla. >> > >> > On R 4.2.2., we get >> > >> > > dirname("C:/") &...
2003 Jul 29
6
[Bug 615] OpenSSH 3.6.1p2 ON SCO 3.2v4.2 + STRICTMODES -->yes (broken dirname in libgen)
...|Added ---------------------------------------------------------------------------- Summary|OpenSSH 3.6.1p2 ON SCO |OpenSSH 3.6.1p2 ON SCO |3.2v4.2 + STRICTMODES -->yes|3.2v4.2 + STRICTMODES -->yes | |(broken dirname in libgen) ------- Additional Comments From vikashb at comparexafrica.co.za 2003-07-29 15:48 ------- After some more effort on my part, i have been able to determine that the problem is in the configure script. SCO 3.2.4.2 has a broken dirname function in libgen, The configure script from 3.5...
2023 Feb 27
1
Undocumented change of dirname("C:/") on R-devel on Windows
...current-directory > > > > Best, > > Yutani > > > > 2023?2?23?(?) 17:15 Tomas Kalibera <tomas.kalibera at gmail.com>: > > > >> > >> On 2/23/23 03:27, Hiroaki Yutani wrote: > >> > Hi, > >> > > >> > I found dirname() behaves differently on R-devel on Windows. Since I'm > >> not > >> > sure which behavior is right, let me ask here before filing this to > R's > >> > Bigzilla. > >> > > >> > On R 4.2.2., we get > >> > > >> &...
2016 May 10
1
[PATCH] builder: run/schedule a SELinux relabel if needed
...changed, 41 insertions(+), 1 deletion(-) diff --git a/builder/website/centos.sh b/builder/website/centos.sh index 5217aef..69670fe 100755 --- a/builder/website/centos.sh +++ b/builder/website/centos.sh @@ -96,4 +96,6 @@ virt-install \ --nographics \ --noreboot +DO_RELABEL=1 + source $(dirname "$0")/compress.sh $output diff --git a/builder/website/compress.sh b/builder/website/compress.sh index 2148804..4e09bf3 100644 --- a/builder/website/compress.sh +++ b/builder/website/compress.sh @@ -20,10 +20,26 @@ output=$1 +relabel_args=() + +if [ -n "$DO_RELABEL" ]; the...
2003 Apr 02
0
[Bug 532] Conflicting basename and dirname on solaris
http://bugzilla.mindrot.org/show_bug.cgi?id=532 Summary: Conflicting basename and dirname on solaris Product: Portable OpenSSH Version: 3.6p1 Platform: UltraSparc OS/Version: Solaris Status: NEW Severity: normal Priority: P2 Component: Build system AssignedTo: openssh-unix-dev at mindrot.org...
2001 Oct 16
2
Solaris 2.5.1 dirname() bug in libgen.a affects OpenSSH2.9.9p2 auth.c
I've discovered a problem with OpenSSH 2.9.9p2 under Solaris 2.5.1 . In auth.c, secure_filename() walks upwards toward the user's home directory or the filesystem root, verifying that no directories along the way are group or world writable. Solaris 2.5.1's dirname() function has a bug where dirname("/.ssh") returns an empty string instead of "/". This causes secure_filename() to try to stat(""), fail, and report "bad ownership or modes for directory ". I discovered this when upgrading from 2.3.0p1 to 2.9.9p2: root w...
2004 Feb 27
0
hotplug for klibc utils
...eturn; + + pid = fork(); + + if (pid < 0) { + perror("fork"); + return; + } + + if (pid > 0){ + wait(NULL); + return; + } + + execlp(name, name, parm, NULL); + exit(1); +} + +/* + * enters the given directory and execute the *.hotplug files + */ +static void execute_dir (char *dirname, char *parm) +{ + DIR *directory; + struct dirent *entry; + char filename[256]; + + directory = opendir(dirname); + if (!directory) + return; + + while ((entry = readdir(directory))) { + snprintf(filename, sizeof (filename), + "%s%s", dirname, entry->d_name); + filename[sizeof (...
2020 Jun 30
1
`basename` and `dirname` change the encoding to "UTF-8"
On 6/29/20 4:39 PM, Johannes Rauh wrote: > Dear R Developers, > > I noticed that `basename` and `dirname` always return "UTF-8" on Windows (tested with R-4.0.0 and R-3.6.3): > >> p <- "F??/B?r" >> Encoding(p) > [1] "latin1" >> Encoding(dirname(p)) > [1] "UTF-8" >> Encoding(basename(p)) > [1] "UTF-8" > > Is...
2008 Feb 17
1
"|dirname| in dfs path \boxname\dirname is not a dfs root" ?
Hi, It's looking to me like the error in the title is the main thing preventing logging into a share via ADS/winbind &c. I see an old note here for someone seeing the same in his error logs: http://lists.samba.org/archive/samba-technical/2007-May/053388.html Ah - this explains a lot. The default for the "msdfs root" parameter changed between 3.0.24 from True to False.
2008 May 14
2
basename/dirname produce incorrect results
The incorrect result incurs when the file path contains Chinese character. It seems that dirname/basename action on unit of byte instead of char, so the result in the following example is half of what is expected. > g<-"d:\\$BG!2L4^M-CfJ8(B\\$BG!2L4^M-CfJ8(B.txt" > dirname(g) [1] "d:/$BG!2L4^(B" > basename(g) [1] "$BG!2L4^M-(B" -- HUANG Ronggui, W...
2015 Feb 02
1
Re: [PATCH 5/6] New APIs: copy-in and copy-out
...t; +#include <errno.h> > +#include <string.h> > + > +#include "guestfs.h" > +#include "guestfs-internal.h" > +#include "guestfs-internal-actions.h" > + > +static int split_path (char *buf, size_t buf_size, const char *path, const char **dirname, const char **basename); > + > +int > +guestfs__copy_in (guestfs_h *g, const char *localpath, const char *remotedir) > +{ > + CLEANUP_CMD_CLOSE struct command *cmd = guestfs___new_command (g); > + int fd; > + int r; > + char fdbuf[64]; > + size_t buf_len = strlen (l...
2016 Jun 07
0
[PATCH 2/2] ruby: tests: Give each test class and method a unique name.
...| 4 ++-- ruby/t/tc_820_rhbz1046509.rb | 4 ++-- 14 files changed, 28 insertions(+), 28 deletions(-) diff --git a/ruby/t/tc_010_load.rb b/ruby/t/tc_010_load.rb index 2ec0314..06922e1 100644 --- a/ruby/t/tc_010_load.rb +++ b/ruby/t/tc_010_load.rb @@ -17,7 +17,7 @@ require File::join(File::dirname(__FILE__), 'test_helper') -class TestLoad < MiniTest::Unit::TestCase - def test_load +class Test010Load < MiniTest::Unit::TestCase + def test_010_load end end diff --git a/ruby/t/tc_020_create.rb b/ruby/t/tc_020_create.rb index a2a01a1..251512b 100644 --- a/ruby/t/tc_020_crea...
2013 Sep 05
12
[PATCH 0/5] Memory leaks amended
Memory leaks found by the tool--valgrind along with static reviewing. Based on Daivd''s branch ''integration-20130903''. Gui Hecheng (5): btrfs-progs:free local variable buf upon unsuccessful returns btrfs-progs:local variable memory freed btrfs-progs: missing tree-freeing statements added btrfs-progs:free the local list pending_list in btrfs_scan_one_dir
2012 Oct 24
2
[BUG][PATCH][BTRFS-PROGS] Bug overflow fix
...ill not be null - terminated. Signed-off-by: Rock Lee <zimilo@code-trick.com> --- utils.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/utils.c b/utils.c index 3c88d2e..7200aef 100644 --- a/utils.c +++ b/utils.c @@ -969,7 +969,7 @@ int btrfs_scan_one_dir(char *dirname, int run_ioctl) pending = malloc(sizeof(*pending)); if (!pending) return -ENOMEM; - strcpy(pending->name, dirname); + snprintf(pending->name, sizeof(pending->name), "%s", dirname); again: dirname_len = strlen(pending->name); @@ -1010,7 +1010,8 @@ again: ret =...