Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #236371

Re: "ls -d" OK, but not "ls"

From Nicolas George <george@nsup.org>
Newsgroups linux.debian.user
Subject Re: "ls -d" OK, but not "ls"
Date 2021-06-23 16:50 +0200
Message-ID <Ctcmu-7x4-13@gated-at.bofh.it> (permalink)
References <CtbJM-7kC-7@gated-at.bofh.it> <CtbTr-7nE-3@gated-at.bofh.it> <Ctc38-7qI-9@gated-at.bofh.it> <CtccN-7tO-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Vincent Lefevre (12021-06-23):
> And while I'm at it, "strace" gives:
> 
> [...]
> stat("/etc/systemd", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
> openat(AT_FDCWD, "/etc/systemd", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
> [...]
> 
> So, on the same directory, "stat" succeeds, but not "openat".

Have you looked at dmesg?

Regards,

-- 
  Nicolas George

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

"ls -d" OK, but not "ls" Vincent Lefevre <vincent@vinc17.net> - 2021-06-23 16:10 +0200
  Re: "ls -d" OK, but not "ls" Roberto C. Sánchez <roberto@debian.org> - 2021-06-23 16:20 +0200
    Re: "ls -d" OK, but not "ls" Vincent Lefevre <vincent@vinc17.net> - 2021-06-23 16:20 +0200
  Re: "ls -d" OK, but not "ls" The Wanderer <wanderer@fastmail.fm> - 2021-06-23 16:20 +0200
    Re: "ls -d" OK, but not "ls" Vincent Lefevre <vincent@vinc17.net> - 2021-06-23 16:30 +0200
      Re: "ls -d" OK, but not "ls" The Wanderer <wanderer@fastmail.fm> - 2021-06-23 16:50 +0200
      Re: "ls -d" OK, but not "ls" Vincent Lefevre <vincent@vinc17.net> - 2021-06-23 16:50 +0200
        Re: "ls -d" OK, but not "ls" Nicolas George <george@nsup.org> - 2021-06-23 16:50 +0200
  Re: "ls -d" OK, but not "ls" Greg Wooledge <greg@wooledge.org> - 2021-06-23 16:30 +0200
    Re: "ls -d" OK, but not "ls" Vincent Lefevre <vincent@vinc17.net> - 2021-06-23 16:50 +0200
      Re: "ls -d" OK, but not "ls" Andrei POPESCU <andreimpopescu@gmail.com> - 2021-06-23 20:30 +0200
        Re: "ls -d" OK, but not "ls" Vincent Lefevre <vincent@vinc17.net> - 2021-06-23 22:50 +0200
          Re: "ls -d" OK, but not "ls" Vincent Lefevre <vincent@vinc17.net> - 2021-06-25 12:40 +0200
  Re: "ls -d" OK, but not "ls" Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2021-06-23 19:30 +0200

csiph-web