Re: Bad File Name error in simple C program

"Palmeri, Frank (ITS)" <[email protected]> Mon, 18 May 2020 10:53:45 +0000
Newsgroups gmane.comp.gnu.mingw.user
Message-ID <MN2PR09MB50184E996B7AA6F6C1868CE8CDB80@MN2PR09MB5018.namprd09.prod.outlook.com>
I think it's permissions related. I work in a very locked down enterprise with a virtual C drive. I have admin privileges, I have UAC turned off, I've granted full control on the MinGW directory and it's subdirectories, and the Bad File Error still happens about 1/3 of the time, mostly on the scanf function. I'm thinking scanf is looking for some file stream that I haven't granted permissions on yet. It sometimes happens on puts, too. It's like it happens when it has to read or write from standard input.

It's not a deal breaker, I can always use visual studio, but that's such a big lift for these simple programs I'd rather not if I don't have to.

Frank L. Palmeri
-----Original Message-----
From: MinGW-Users <[email protected]> On Behalf Of Eli Zaretskii
Sent: Saturday, May 16, 2020 7:36 AM
To: MinGW Users List <[email protected]>
Subject: Re: [Mingw-users] Bad File Name error in simple C program

ATTENTION: This email came from an external source. Do not open attachments or click on links from unknown senders or unexpected emails.

> From: "Palmeri, Frank (ITS)" <[email protected]>
> Date: Thu, 30 Apr 2020 15:52:25 +0000
>
> I am getting a Bad File Name error on a simple C program compiled with 
> GCC in Mingw32 in Windows 10 Enterprise 64 bit.

FWIW, I cannot reproduce this problem, and have no idea why it happens for you.

_______________________________________________
MinGW-Users mailing list
[email protected]

This list observes the Etiquette found at https://protect2.fireeye.com/v1/url?k=cc1ec64e-902660f3-cc1c3f7b-000babd9fa3f-68834f7fe05d7b7c&q=1&e=aefedab2-e73b-4967-aa65-da93fc1717a9&u=http%3A%2F%2Fwww.mingw.org%2FMailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://protect2.fireeye.com/v1/url?k=90c4bcd4-ccfc1a69-90c645e1-000babd9fa3f-e6b83991489aefad&q=1&e=aefedab2-e73b-4967-aa65-da93fc1717a9&u=https%3A%2F%2Flists.osdn.me%2Fmailman%2Flistinfo%2Fmingw-users
Also: mailto:[email protected]?subject=unsubscribe
_______________________________________________
MinGW-Users mailing list
[email protected]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.osdn.me/mailman/listinfo/mingw-users
Also: mailto:[email protected]?subject=unsubscribe