ssh-keygen: error if file is directory

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



On several tasks if you pass a directory as a file to ssh-keygen, the
program wouldn't check the file mode to check if it's a directory like:
`Saving key "./test/" failed: Is a directory`
After asking the user to overwrite or not.

The file mode is already readed when getting `stat`
Do you think checking it is a good idea?

I've done something like:

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux