Skip to content

Commit

Permalink
wic/plugins/rootfs: Fix NameError for 'orig_path'
Browse files Browse the repository at this point in the history
Fix "NameError: name 'orig_path' is not defined".
It's a typo from when this error was handled outside this function.

Signed-off-by: Mihai Lindner <mihai.lindner@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
  • Loading branch information
mihailin authored and rpurdie committed Jul 23, 2022
1 parent e8809c0 commit 2124ec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/lib/wic/plugins/source/rootfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class RootfsPlugin(SourcePlugin):
@staticmethod
def __validate_path(cmd, rootfs_dir, path):
if os.path.isabs(path):
logger.error("%s: Must be relative: %s" % (cmd, orig_path))
logger.error("%s: Must be relative: %s" % (cmd, path))
sys.exit(1)

# Disallow climbing outside of parent directory using '..',
Expand Down

0 comments on commit 2124ec0

Please sign in to comment.