[Bug 899] New: typegen can delete all your files

http://bugs.orocos.org/show_bug.cgi?id=899

Summary: typegen can delete all your files
Product: Toolchain
Version: master
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: P3
Component: orogen
AssignedTo: orocos-dev [..] ...
ReportedBy: dominick [dot] vanthienen [..] ...
CC: orocos-dev [..] ...
Estimated Hours: 0.0

Hi,

typegen doesn't work without the --output option
and
the incorrect use of this option will delete all files in all subfolders of the
current directory you're in, eg.
rosrun orogen typegen --transports=corba --output . my_typekit
/path_to/myTypes.hpp

Nick

[Bug 899] New: typegen can delete all your files

On 09/19/2011 02:07 PM, nick vanthienen wrote:
> http://bugs.orocos.org/show_bug.cgi?id=899
>
> Summary: typegen can delete all your files
> Product: Toolchain
> Version: master
> Platform: All
> OS/Version: All
> Status: NEW
> Severity: major
> Priority: P3
> Component: orogen
> AssignedTo: orocos-dev [..] ...
> ReportedBy: dominick [dot] vanthienen [..] ...
> CC: orocos-dev [..] ...
> Estimated Hours: 0.0
>
>
> Hi,
>
> typegen doesn't work without the --output option
> and
> the incorrect use of this option will delete all files in all subfolders of the
> current directory you're in, eg.
> rosrun orogen typegen --transports=corba --output . my_typekit
> /path_to/myTypes.hp
I just pushed a fix to master. Could not test it intensively, as I have
neither typegen-based packages nor a ROS environment

Sylvain

[Bug 899] New: typegen can delete all your files

On 09/19/2011 02:07 PM, nick vanthienen wrote:
> http://bugs.orocos.org/show_bug.cgi?id=899
>
> Summary: typegen can delete all your files
> Product: Toolchain
> Version: master
> Platform: All
> OS/Version: All
> Status: NEW
> Severity: major
> Priority: P3
> Component: orogen
> AssignedTo: orocos-dev [..] ...
> ReportedBy: dominick [dot] vanthienen [..] ...
> CC: orocos-dev [..] ...
> Estimated Hours: 0.0
>
>
> Hi,
>
> typegen doesn't work without the --output option
> and
> the incorrect use of this option will delete all files in all subfolders of the
> current directory you're in, eg.
> rosrun orogen typegen --transports=corba --output . my_typekit
> /path_to/myTypes.hpp
Ayeeeee

What's incorrect is that --output does not verify that it is given a
non-empty argument. And the usage documentation is wrong

You need to given --output=., not --output

Sorry for what I assume has been painful

Sylvain