On Tue, Apr 05, 2022 at 09:48:09PM +0000, Sidhartha Kumar wrote: > - perror("open"); > - exit(1); > + switch (errno) { > + case EACCES: > + if (getuid()) > + printf("Please run this test as root\n"); Shouldn't all these be fprintf(stderr, ...); ?
On Tue, Apr 05, 2022 at 09:48:09PM +0000, Sidhartha Kumar wrote: > - perror("open"); > - exit(1); > + switch (errno) { > + case EACCES: > + if (getuid()) > + printf("Please run this test as root\n"); Shouldn't all these be fprintf(stderr, ...); ?