Operating System - HP-UX
1834788 Members
2824 Online
110070 Solutions
New Discussion

creat(/var/tmp/aaaa01454, 0755) failed (errno = 22)

 
ANGELES Jos
New Member

creat(/var/tmp/aaaa01454, 0755) failed (errno = 22)

I used a script on all my HP boxes (10.20 and 11.00) which work fine except on 2 machines : i got the error
creat(/var/tmp/aaaa01454, 0755) failed (errno = 22)
.
Looking to the errno.h file , i found that 22 means invalid argument (EINVAL).
Man creat show the EINVAL but doesn't help to understand what it is happening on these 2 machines .
(i compare with other machine
and didn't find anything which can help to solve this problem).

Any idea ??
Thanks for your help
Jo
Jo
5 REPLIES 5
MANOJ SRIVASTAVA
Honored Contributor

Re: creat(/var/tmp/aaaa01454, 0755) failed (errno = 22)

Angles

It look s that the application is try to create this file without the correct arguments or parameters. May be you can try cleaning /var/tmp and running the app again.


Manoj Srivastava
T G Manikandan
Honored Contributor

Re: creat(/var/tmp/aaaa01454, 0755) failed (errno = 22)

Just check for the permissions for the /var/tmp
directory.

It should be
drwxrwxrwxt bin bin /var/tmp

Thanks
ANGELES Jos
New Member

Re: creat(/var/tmp/aaaa01454, 0755) failed (errno = 22)

Many thanks for your answers , but i already check
permissions and clean /var/tmp .
Any other idea ??

Jo
U.SivaKumar_2
Honored Contributor

Re: creat(/var/tmp/aaaa01454, 0755) failed (errno = 22)

hi,
What is your umask ?.
Also try this as the user you run that script.
#touch /var/tmp/aaaa01454
#ll /var/tmp/aaa*
is the file created ?

regards,
U.SivaKumar
Innovations are made when conventions are broken
ANGELES Jos
New Member

Re: creat(/var/tmp/aaaa01454, 0755) failed (errno = 22)

Thks for you suggestion .
I already check that (comparing with other machines).
The umask is 022
The file is correctly created with 644 permissions

Many thanks for any other suggestion.
Jose
Jo