Bug 1091069

Summary: [Build213.2] yast2 lan module displays perl-related warning in terminal
Product: [openSUSE] openSUSE Distribution Reporter: Tomas Hehejik <thehejik>
Component: YaST2Assignee: YaST Team <yast-internal>
Status: RESOLVED DUPLICATE QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P3 - Medium CC: kanderssen
Version: Leap 15.0   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
URL: https://trello.com/c/N2Mlcyh8
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Tomas Hehejik 2018-04-26 12:35:07 UTC
When I perform "yast2 lan help" as root from terminal it displays some perl-related warnings at the bottom of the output.

YaST Configuration Module lan
------------------------------

Network Card Configuration

Basic Syntax:
    yast2 lan interactive
    yast2 lan <command> [verbose] [options]
    yast2 lan help
    yast2 lan longhelp
    yast2 lan xmlhelp
    yast2 lan <command> help

Commands:
    add     Add a network card
    delete  Delete a network card
    edit    Change existing configuration
    list    Display configuration summary
    show    Display configuration summary

Run 'yast2 lan <command> help' for a list of available options.

Warning: unable to close filehandle properly: Bad file descriptor, <STDIN> line
	21 during global destruction (#1)
    (S io) There were errors during the implicit close() done on a filehandle
    when its reference count reached zero while it was still open, e.g.:
    
        {
            open my $fh, '>', $file  or die "open: '$file': $!\n";
            print $fh $data or die "print: $!";
        } # implicit close here
    
    Because various errors may only be detected by close() (e.g. buffering could
    allow the print in this example to return true even when the disk is full),
    it is dangerous to ignore its result.  So when it happens implicitly, perl
    will signal errors by warning.
    
    Prior to version 5.22.0, perl ignored such errors, so the common idiom shown
    above was liable to cause silent data loss.
Comment 1 Steffen Winterfeldt 2018-04-26 13:46:10 UTC
Tracking in YaST scrum board.
Comment 2 Knut Alejandro Anderssen González 2018-04-26 14:23:10 UTC
For me it looks like a duplicate of https://bugzilla.suse.com/show_bug.cgi?id=966042 which Martin already checked and proposed a fix for.

So closing it as duplicated but feel free to reopen it if I'm wrong.

*** This bug has been marked as a duplicate of bug 966042 ***