Menu

#4 di silently succeeds with malformed $DI_ARGS

1.0
closed
None
2023-04-24
2023-04-24
Phil Hudson
No

As discovered in previous issue #3 I had a malformed DI_ARGS value for many years, unsuspected despite multiple daily usage. Specifically, it contained a -x comma-separated list followed by what was intended to be a -f format specifier string, only without the -f.

-x fdesc,tmpfs,devtmpfs,rootfs,squashfs,autofs,fuse.portal,fuse.snapfuse sMbuv1t

This should fail gracefully, I think, or at least output a warning to stderr. What do you think?

Discussion

  • Brad Lanam

    Brad Lanam - 2023-04-24

    DI_ARGS="-y" ./di
    prints an error message, but extra stuff that is not recognizable as an argument is ignored as these types of arguments (if specified on the command line) are processed by the main program as pathnames. I think I see a way to resolve this.

     
  • Brad Lanam

    Brad Lanam - 2023-04-24
    • status: open --> closed
    • assigned_to: Brad Lanam
     
  • Brad Lanam

    Brad Lanam - 2023-04-24

    Fixed in version 4.52

     

Log in to post a comment.