Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108305903
D35113.id105638.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
677 B
Referenced Files
None
Subscribers
None
D35113.id105638.diff
View Options
diff --git a/usr.sbin/bsdinstall/scripts/script b/usr.sbin/bsdinstall/scripts/script
--- a/usr.sbin/bsdinstall/scripts/script
+++ b/usr.sbin/bsdinstall/scripts/script
@@ -115,12 +115,13 @@
bsdinstall mount
# Fetch missing distribution files, if any
-exec 3>&1
-export BSDINSTALL_DISTDIR=$(`dirname $0`/fetchmissingdists 2>&1 1>&3)
-FETCH_RESULT=$?
-exec 3>&-
-
-[ $FETCH_RESULT -ne 0 ] && error "Could not fetch remote distributions"
+(
+ exec 3>&1
+ export BSDINSTALL_DISTDIR=$(`dirname $0`/fetchmissingdists 2>&1 1>&3)
+ FETCH_RESULT=$?
+ exec 3>&-
+ return $FETCH_RESULT
+) || error "Could not fetch remote distributions"
# Unpack distributions
bsdinstall checksum
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 24, 5:50 PM (10 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16094171
Default Alt Text
D35113.id105638.diff (677 B)
Attached To
Mode
D35113: bsdinstall: stop messing with file descriptors
Attached
Detach File
Event Timeline
Log In to Comment