chore: update changelog to 6.1.96#1150
Conversation
update changelog to 6.1.96 Log: update changelog to 6.1.96
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpdates the Debian changelog metadata to reflect new release version 6.1.96 targeting master, with no functional code changes. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
TAG Bot TAG: 6.1.96 |
deepin pr auto review★ 总体评分:40分■ 【总体评价】
■ 【详细分析】
■ 【改进建议代码示例】 func (*Daemon) SaveCustomWallPaper(username string, file string) (string, *dbus.Error) {
// 直接打开文件,避免 TOCTOU 竞态条件
f, err := os.Open(file)
if err != nil {
return "", dbus.MakeFailedError(fmt.Errorf("failed to open file: %v", err))
}
defer f.Close()
// 基于已打开的文件句柄获取文件信息
info, err := f.Stat()
if err != nil {
return "", dbus.MakeFailedError(fmt.Errorf("failed to stat file: %v", err))
}
// 检查文件大小
if info.Size() > maxSize {
return "", dbus.MakeFailedError(fmt.Errorf("file size exceeds max limit"))
}
// 检查是否为常规文件
if !info.Mode().IsRegular() {
return "", dbus.MakeFailedError(fmt.Errorf("not a regular file"))
}
// 后续基于文件句柄 f 进行读取和复制操作
// destPath := filepath.Join(wallPaperDir, username+"-wallpaper.jpg")
// err = copyFile(f, destPath)
// if err != nil { ... }
return "", nil
} |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: caixr23, mhduiy The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
TAG Bot ✅ Tag created successfully 📋 Tag Details
|
更新说明
自动更新 changelog 到版本 6.1.96
变更内容
版本信息
Summary by Sourcery
Chores: