Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perror always return 'No such file or directory' #502

Open
1 task done
Freed-Wu opened this issue Apr 1, 2023 · 0 comments
Open
1 task done

perror always return 'No such file or directory' #502

Freed-Wu opened this issue Apr 1, 2023 · 0 comments
Labels

Comments

@Freed-Wu
Copy link

Freed-Wu commented Apr 1, 2023

  • Checked for duplicates

To Reproduce

[cling]$ #include <stdio.h>
[cling]$ #include <stdlib.h>
[cling]$ fopen("/root/a", "r+");
[cling]$ perror("a");
a: No such file or directory

Expected behavior

[cling]$ #include <stdio.h>
[cling]$ #include <stdlib.h>
[cling]$ fopen("/root/a", "r+");
[cling]$ perror("a");
a: Permission denied

A simpler example:

[cling]$ #include <stdio.h>
[cling]$ perror("a");
a: No such file or directory

Expected

[cling]$ #include <stdio.h>
[cling]$ perror("a");
a: Success

Setup

  1. Cling version 0.9
  2. Operating system 6.2.7-arch1-1
  3. How you obtained Cling, such as with cpt.py (also mention flags) / you built it yourself.
    pacman

Additional context

@Freed-Wu Freed-Wu added the bug label Apr 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant