search for: dir_fd

Displaying 10 results from an estimated 10 matches for "dir_fd".

Did you mean: dir_f
2023 Jan 13
0
[klibc:master] ls: Handle relative directory names correctly
...a/usr/utils/ls.c b/usr/utils/ls.c index 9677bc0f..50af4349 100644 --- a/usr/utils/ls.c +++ b/usr/utils/ls.c @@ -50,7 +50,7 @@ static void do_preformat(const struct stat *st) return; } -static void do_stat(const struct stat *st, const char *path) +static void do_stat(const struct stat *st, int dir_fd, const char *path) { char *fmt, *link_name; int rc; @@ -138,7 +138,7 @@ static void do_stat(const struct stat *st, const char *path) perror("malloc"); exit(1); } - rc = readlink(path, link_name, max_linksiz); + rc = readlinkat(dir_fd, path, link_name, max_linksiz); if...
2014 May 22
0
[PATCH] openssh - loginrec.c - Non-atomic file operations.
...s: Couldn't stat %s: %s", __func__, - LASTLOG_FILE, strerror(errno)); - return (0); - } - if (S_ISDIR(st.st_mode)) { - snprintf(lastlog_file, sizeof(lastlog_file), "%s/%s", - LASTLOG_FILE, li->username); - } else if (S_ISREG(st.st_mode)) { + DIR *lastlog_dir; + int dir_fd = -1; + + /* Try to open directory */ + lastlog_dir = opendir(lastlog_file); + if (lastlog_dir != NULL) { + /* So. We are directory. */ + dir_fd = dirfd(lastlog_dir); + snprintf(lastlog_file, sizeof(lastlog_file), "/dev/fd/%d/%s", + dir_fd, li->username); + } else if ((errno == EN...
2023 Nov 20
2
Online Backup failed....
...655, in _rmtree_safe_fd _rmtree_safe_fd(dirfd, fullname, onerror) File "/usr/lib/python3.9/shutil.py", line 659, in _rmtree_safe_fd onerror(os.rmdir, fullname, sys.exc_info()) File "/usr/lib/python3.9/shutil.py", line 657, in _rmtree_safe_fd os.rmdir(entry.name, dir_fd=topfd) -----Urspr?ngliche Nachricht----- Von: samba at laurenz.ws <samba at laurenz.ws> Gesendet: Montag, 20. November 2023 15:34 An: 'samba at lists.samba.org' <samba at lists.samba.org> Betreff: AW: [Samba] Online Backup failed.... Same problem: ERROR(<class 'OSErro...
2023 Nov 20
1
Online Backup failed....
...in _rmtree_safe_fd _rmtree_safe_fd(dirfd, fullname, onerror) File "/usr/lib/python3.9/shutil.py", line 659, in _rmtree_safe_fd onerror(os.rmdir, fullname, sys.exc_info()) File "/usr/lib/python3.9/shutil.py", line 657, in _rmtree_safe_fd os.rmdir(entry.name, dir_fd=topfd) root at dc01:/autofs/backup# ls -la /var/lib/samba/private/sam.ldb.d/ insgesamt 29680 drwx------ 2 root root 4096 8. Aug 15:30 . drwxr-xr-x 6 root root 4096 20. Nov 03:19 .. -rw------- 1 root root 8470528 20. Nov 14:20 'CN=CONFIGURATION,DC=SAMBA,DC=LAURENZ,DC=WS.ldb'...
2023 Nov 20
4
Online Backup failed....
Hey, dir exisit.... root at dc01:/autofs/backup# ls -la /autofs/backup/linux/samba_dom/backup.tgz/ insgesamt 12484 drwxr-xr-x 4 root root 4096 20. Nov 14:02 . drwxr-xr-x 3 root root 4096 20. Nov 14:00 .. -rw-r--r-- 1 root root 12765535 20. Nov 14:03 samba-backup-samba.laurenz.ws-2023-11-20T14-02-51.306281.tar.bz2 drwx------ 2 root root 4096 20. Nov 14:00 tmpdz6serc_ drwx------ 7 root
2023 Nov 20
1
Online Backup failed....
...> _rmtree_safe_fd(dirfd, fullname, onerror) > File "/usr/lib/python3.9/shutil.py", line 659, in _rmtree_safe_fd > onerror(os.rmdir, fullname, sys.exc_info()) > File "/usr/lib/python3.9/shutil.py", line 657, in _rmtree_safe_fd > os.rmdir(entry.name, dir_fd=topfd) > This is very strange, as I said, I have been using a script to backup my domain using 'samba-tool domain backup online' for the last 2 years, without problem. My Unix domain member is using Samba 4.18.8 on Devuan 5 (daedalus) My DC with the PDC_Emulator role is using Samba 4....
2020 May 05
0
samba-tool domain backup online fails
...in _rmtree_safe_fd _rmtree_safe_fd(dirfd, fullname, onerror) File "/usr/lib/python3.7/shutil.py", line 433, in _rmtree_safe_fd onerror(os.rmdir, fullname, sys.exc_info()) File "/usr/lib/python3.7/shutil.py", line 431, in _rmtree_safe_fd os.rmdir(entry.name, dir_fd=topfd)
2023 Nov 20
1
Online Backup failed....
...> _rmtree_safe_fd(dirfd, fullname, onerror) > File "/usr/lib/python3.9/shutil.py", line 659, in _rmtree_safe_fd > onerror(os.rmdir, fullname, sys.exc_info()) > File "/usr/lib/python3.9/shutil.py", line 657, in _rmtree_safe_fd > os.rmdir(entry.name, dir_fd=topfd) > This is very strange, as I said, I have been using a script to backup my domain using 'samba-tool domain backup online' for the last 2 years, without problem. My Unix domain member is using Samba 4.18.8 on Devuan 5 (daedalus) My DC with the PDC_Emulator role is using Samba 4....
2020 May 05
1
samba-tool domain backup online fails
...in _rmtree_safe_fd _rmtree_safe_fd(dirfd, fullname, onerror) File "/usr/lib/python3.7/shutil.py", line 433, in _rmtree_safe_fd onerror(os.rmdir, fullname, sys.exc_info()) File "/usr/lib/python3.7/shutil.py", line 431, in _rmtree_safe_fd os.rmdir(entry.name, dir_fd=topfd)
2012 Nov 05
7
VFS ACL with SMB2
Hello, I have a question because POSIX ACL with SMB2 max protocol does not work properly.Did you test VFS xattr acls with SMB2 max protocol? Is it working corectly? Best regards/Adrian Berlin --