[solved]-Given Output Following Command Ls L Xyz Rw 1 Mas Mas 2803 Mar 27 21 12 Xyz User Mas Runs F Q38999572
Given the output of the following command:
$ ls -l xyz-rw——- 1 mas mas 2803 Mar 27 21:12 xyz
If a user other than mas runs the following code, in thedirectory containing xyz …
int fd = open(“xyz”, O_RDONLY);if (fd < 0) { perror(NULL); exit(1);}
what will be the resulting error message?
“No such file or directory”
“Permission denied”
“Segmentation fault”
There is no error, so there will be no error message
The call to perror() will fail, because of the NULL argument,and produce no message
None of the other answers is correct
Expert Answer
Answer to Given the output of the following command: $ ls -l xyz -rw——- 1 mas mas 2803 Mar 27 21:12 xyz If a user other than m… . . .
OR

